4 ms·
Something I sorely missed when I still worked for the man. Anyhow, in Lisp, visually, a LET with it's enclosing parens makes it much faster to see the closed-o
by joubert 16y ago
Something I sorely missed when I still worked for the man.
Anyhow, in Lisp, visually, a LET with it's enclosing parens makes it much faster to see the closed-over variables.
- ToastOpt 16y agoDon't you mean 'lambda'?
- joubert 16y agoI think I meant what I said :-), which is that closing over a lexical variable in Lisp, using LET, more clearly, to my eyes at least, show which variables are hidden/closed over. For example, in CL, this guy's example would take the general form: (let ((counter 0)) (defun tally () (incf counter))) So, in this form, I know that TALLY hides/closes over COUNTER, without needing to inspect the function body (either before, or within a λ that might be returned from within the function body).