3 ms·
> 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 argumen
by __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.