Now, this is Python and not Lua and maybe Python does have some 'strict' mode hidden somewhere... but I think it doesn't and it's pretty gross that it actually executes some code (print("START")) before crashing. I take it Lua also doesn't the equivalent of 'strict "vars"'.$ python -c 'print("START"); print(x + y)' START Traceback (most recent call last): File "<string>", line 1, in <module> NameError: name 'x' is not defined $ perl -E 'use strict; say "START"; say $x + $y' Global symbol "$x" requires explicit package name (did you forget to d +eclare "my $x"?) at -e line 1. Global symbol "$y" requires explicit package name (did you forget to d +eclare "my $y"?) at -e line 1. Execution of -e aborted due to compilation errors.
Which makes the current state of the community all the more depressing.Well, OTOH, I heard Lua has sane and simple C API, while Perl has XS... nothing is perfect.
In reply to Re: It's so easy to become complacent.
by Anonymous Monk
in thread It's so easy to become complacent.
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |