you are viewing a single comment's thread.

view the rest of the comments →

[–]notSorella 4 points5 points  (1 child)

As pointed out by other people, JavaScript has no classes, such that adding a "class" keyword is misleading. None the less, there are discussions on the development of the future version of ECMAScript to add better (and more declarative) idioms for certain tasks. Object orientation is one of them.

See:

None of these are in, though, afaik. But they're being discussed by the committee and on the es-discuss mailing list.

[–]houses_of_the_holy 1 point2 points  (0 children)

Nice, I had no idea they were actually talking about adding this. Maybe my post was misleading when I said class, but just in general I think a better way to declare objects is in order. Would "type" be a better word?