4 ms·
> How about C, C++, Java You do realize they all default to lexical variables, and if you want something else, you have to declare accordingly, right? >Lisp
by grammaton 16y ago
> How about C, C++, Java
You do realize they all default to lexical variables, and if you want something else, you have to declare accordingly, right?
>Lisp
Is a beautiful language, and primarily a play-toy for academics with a handful of real-world applications. While we're at it, which Lisp? Ansi Common?
> Javascript
I believe it is exactly this quirk in Javascript's scoping that is a major complaint of many developers - although I don't know much javascript and can't speak with authority here.
- __david__ 16y ago> You do realize they all default to lexical variables, and if you want something else, you have to declare accordingly, right? I don't understand your argument. You have to explicitly declare lexical variables in those languages. Ditto for Perl: $ perl -e 'use strict; sub x { $i = 0 }' Global symbol "$i" requires explicit package name at -e line 1. Execution of -e aborted due to compilation errors.