22 ms·
JavaScript's scoping rules aren't the same as Scheme's -- variables are scoped at the function level rather than the block level.
by groovy2shoes 15y ago
JavaScript's scoping rules aren't the same as Scheme's -- variables are scoped at the function level rather than the block level.
- tikhonj 15y agoThat's how it works in Scheme too--you only get a new scope if you either have a lambda or an implicit lambda.
- groovy2shoes 15y agoSure, but in Scheme every block is an implicit lambda. In JavaScript, blocks are justs sections of code.