manuel / wat-js

Concurrency and Metaprogramming for JS
MIT License
259 stars 10 forks source link

No lexically scoped let? #4

Closed shadowcat-mst closed 11 years ago

shadowcat-mst commented 11 years ago

Seems like it might be simple enough I'd stand a chance of figuring out a working implementation ... I guess a derived-environment that calls make_env() with the current env?

Or is the intention "don't be so silly, each operative has its own internal scope so 'def' works fine" ?

manuel commented 11 years ago

What do you mean?

Have you seen the LET implementation here: https://github.com/manuel/wat-js/blob/master/wat-basics.js#L29

shadowcat-mst commented 11 years ago

Apparently I mean "somewhere between starting work and writing that comment I completely forgot wat-basics.js existed".

Closing as PEBKAC.