3 ms·
Why would a variable declaration be executed conditionally, unless you can somehow GOTO past the declaration? CL doesn't let you do that, does it? > top level
by ogogmad 3y ago
Why would a variable declaration be executed conditionally, unless you can somehow GOTO past the declaration? CL doesn't let you do that, does it?
> top level lexical scope
What does this mean? Every single other language lets you write:
var x = y;
Why is Lisp seemingly the only (imperative) language that doesn't?
- medo-bear 3y ago> Why would a variable declaration be executed conditionally, unless you can somehow GOTO past the declaration? CL doesn't let you do that, does it? http://clhs.lisp.se/Body/s_tagbod.htm#tagbody http://clhs.lisp.se/Body/s_tagbod.htm#tagbody http://clhs.lisp.se/Body/s_go.htm#go http://clhs.lisp.se/Body/s_go.htm#go
- pfdietz 3y agoOne reason to not allow this is that it breaks the equivalence that (for example) (progn <form>) is equivalent to <form>
- martinflack 3y ago^ This is huge. A lot of top-level macro usage would be really annoying to implement if wrapping a PROGN around top-level commands neutered their effect.