ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.


AddThis Social Bookmark Button
  JavaScript: How Did We Get Here?
Subject:   ECMA spec v4 could be a bad forward move
Date:   2003-04-04 04:33:49
From:   anonymous2
for now ECMAscript based languages are prototype-based (or Object-based if you prefer)

but reading the futur v4 specification for ECMAscript, they clearly want to move the language to a Class-based language

and imho that's not a good thing

ECMAscript is powerfull when you can use expando and adapt the language defaults to your needs

date.prototype.format = function() {...}

THAT is powerfull, you can't do that in PHP for example

it will be sad to cut that particular way of doing Object Oriented Programming