Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration test case recorder #115

Closed
rexim opened this issue Oct 13, 2015 · 4 comments
Closed

Integration test case recorder #115

rexim opened this issue Oct 13, 2015 · 4 comments
Assignees

Comments

@rexim
Copy link
Member

rexim commented Oct 13, 2015

Extracted from #77

@rexim
Copy link
Member Author

rexim commented Oct 14, 2015

22th Morning Tsoding has shown that I know nothing about functions in Emacs Lisp and their relationships with lexical scoping. :) So, I think I have to read something about that before the next stream.

@rexim
Copy link
Member Author

rexim commented Oct 14, 2015

Ok, on the stream I wanted to implement higher order functions that take another functions and instrument them to enable action recording. I think this is what I should have read before that :) http://www.gnu.org/software/emacs/manual/html_node/elisp/Closures.html

@rexim
Copy link
Member Author

rexim commented Oct 14, 2015

The most interesting part for me:

When lexical binding is enabled, any named function that you create (e.g., with defun), as well as any anonymous function that you create using the lambda macro or the function special form or the #' syntax (see Anonymous Functions), is automatically converted into a closure.

So looks like there are three things that we have to distinguish:

  • function special form
  • lambda macro
  • #' syntax

Anonymous Functions: http://www.gnu.org/software/emacs/manual/html_node/elisp/Anonymous-Functions.html

@rexim
Copy link
Member Author

rexim commented Oct 14, 2015

Anyway, I think we have to enable lexical binding for all the modules.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant