Content deleted Content added
Line 72:
::X has problems displaying it on some browsers like Chrome.
::I did a screenshot with Firefox. Google search has it cached too. [[Special:Contributions/2A00:FBC:E1C4:5A7E:988B:44F9:E011:2675|2A00:FBC:E1C4:5A7E:988B:44F9:E011:2675]] ([[User talk:2A00:FBC:E1C4:5A7E:988B:44F9:E011:2675|talk]]) 12:36, 30 March 2025 (UTC)
::This is a link the current source of the Spidermonkey implementation of JS Arrays:
::https://searchfox.org/mozilla-central/source/js/src/builtin/Array.cpp
::Searching for the word "Perl" shows a list of "Perl-ish methods" like
::<code>
:: /* Perl-ish methods. */
:: JS_INLINABLE_FN("join", array_join, 1, 0, ArrayJoin),
:: JS_FN("reverse", array_reverse, 0, 0),
:: JS_TRAMPOLINE_FN("sort", array_sort, 1, 0, ArraySort),
:: JS_INLINABLE_FN("push", array_push, 1, 0, ArrayPush),
:: JS_INLINABLE_FN("pop", array_pop, 0, 0, ArrayPop),
:: JS_INLINABLE_FN("shift", array_shift, 0, 0, ArrayShift),
:: JS_FN("unshift", array_unshift, 1, 0),
:: JS_FNINFO("splice", array_splice, &array_splice_info, 2, 0),
::</code>
::Compare
::- join http://perldoc.perl.org/functions/join.html
::- reverse http://perldoc.perl.org/functions/reverse.html
::- push http://perldoc.perl.org/functions/push.html
::More corresponding Perl functions can be found in
::http://perldoc.perl.org/perlfunc.html
::I'm sure a repo of JS 1.0 would show more detailed comments regarding Perl.
::Claiming that Hypertalk or AWK had bigger influence on JS most probably comes from anti-Perl zeitgeist. [[Special:Contributions/2A00:FBC:E1C4:5A7E:988B:44F9:E011:2675|2A00:FBC:E1C4:5A7E:988B:44F9:E011:2675]] ([[User talk:2A00:FBC:E1C4:5A7E:988B:44F9:E011:2675|talk]]) 12:44, 30 March 2025 (UTC)
:"JavaScript borrows most of its syntax from Java, C, and C++, but it has also been influenced by Awk, '''Perl''', and Python."
: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Grammar_and_types#:~:text=JavaScript%20borrows%20most%20of%20its%20syntax%20from%20Java%2C%20C%2C%20and%20C%2B%2B%2C%20but%20it%20has%20also%20been%20influenced%20by%20Awk%2C%20Perl%2C%20and%20Python. [[Special:Contributions/2A00:FBC:E1C4:5A7E:952E:5756:15EC:39D|2A00:FBC:E1C4:5A7E:952E:5756:15EC:39D]] ([[User talk:2A00:FBC:E1C4:5A7E:952E:5756:15EC:39D|talk]]) 16:20, 29 March 2025 (UTC)
|