Mozilla Extending Javascript?
Nomad128 writes "Mozilla's Deer Park 1 Alpha RC appears to have extended the Javascript spec for the first time in quite some time. New features include Array object methods "every" (logical AND), "some" (logical OR), "map" (function mapping), and "forEach" (iteration). They also appear to have added native XML support. Will this speed up the development of AJAX applications and give Moz a leg-up over IE7?"
Sounds like Javascript is being turned into a client-side version of PHP. Do we need another version of PHP?
PHP is server-side, so this is a completely stupid comparison. "Do we need another...?" On the client side, JavaScript is pretty much all we've got, so yeah, if we want more client-side functionality, JavaScript is the place to put it.
Besides, PHP is a terrible language. Sure, it's a lot nicer than C, and people with no background in either C or UNIX find it initially less confusing than Perl (which borrows a lot from both C and UNIX conventions), and the php.net documentation is very nicely presented. But here's why PHP sucks. Personally I find JavaScript's syntax for, say, handling regular expressions to be far less awkward and confusing than PHP's. JavaScript feels much more consistent to me.
$x='S24;r)>63/* h@<5+oZ)32"5cz';$me='phroggy'x$];
$x=~y+ -xz+\0-Tx+;print$_^chop$me for split'',$x;
On the contrary, I think these extensions are fantastic. The more we can create sites that won't work in IE, the faster we can bring down MS.