in reply to Re^4: [OT] Perl / Computer Science Science Fair Projects
in thread [OT] Perl / Computer Science Science Fair Projects
However the Perl version had better cause to do it (there is popular code in the wild which conflicts with Perl 5.10 features, whereas worries about functions named "let" are more theoretical), and did it with a language mechanism that is used by a lot of third party modules.
But there are other significant differences. The JavaScript version has horrible action at a distance. If my library uses let, you have to know that when you load it in a different file. How to do it is not obvious. If I have multiple JavaScript snippets, I have to include that feature in each one. If I wish to inline some JavaScript in a tag, there is (as far as I know) absolutely no way for me to say that I want features turned on. (Yes, in autogenerated code it sometimes does make sense to put complex JavaScript in tags.) Furthermore if I'm a novice bitten by JavaScript's unusual scoping rule, there is no easy way for me to discover that workaround.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: [OT] Perl / Computer Science Science Fair Projects
by ikegami (Patriarch) on Sep 09, 2008 at 21:06 UTC | |
by tilly (Archbishop) on Sep 09, 2008 at 21:37 UTC | |
|
Re^6: [OT] Perl / Computer Science Science Fair Projects
by Anonymous Monk on Sep 11, 2008 at 05:22 UTC |