3 ms·
While I understand the let vs var thing, I wish I could tell the compiler that I promise not to non-obviously reference a local var (e.g. in an eval). Then Coff
by kodablah 9y ago
While I understand the let vs var thing, I wish I could tell the compiler that I promise not to non-obviously reference a local var (e.g. in an eval). Then CoffeeScript could determine it is only written at decl time and could use const. Technically, this could be used for var scoping too in the let vs var issue.
> Keep in mind that const only protects you from reassigning a variable
While I haven't looked, I'd suspect there are performance implications too.