in reply to It's so easy to become complacent.
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: It's so easy to become complacent.
by salva (Canon) on Feb 25, 2016 at 09:00 UTC | |
by eserte (Deacon) on Feb 26, 2016 at 08:21 UTC | |
|
Re^2: It's so easy to become complacent.
by Anonymous Monk on Feb 25, 2016 at 04:31 UTC | |
by Anonymous Monk on Feb 25, 2016 at 04:56 UTC | |
by Anonymous Monk on Feb 25, 2016 at 07:03 UTC | |
by Anonymous Monk on Feb 25, 2016 at 08:19 UTC |