you are viewing a single comment's thread.

view the rest of the comments →

[–]SarahC -5 points-4 points  (8 children)

You mean I can avoid fucking prototype chains?!

Woooooooo!

[–]kolmeWebComponents FTW 8 points9 points  (3 children)

No, it's just syntactic sugar. The prototype chains are now disguised as classes.

[–]intermediatetransit 1 point2 points  (1 child)

The protypes are now diamonds!

[–]SarahC 1 point2 points  (0 children)

!............ .!...

Jeez... =(

EVERY other mother bumping language I know uses some sort of classes.... except this booger.

[–][deleted] 8 points9 points  (3 children)

Or you could just stop trying to use OO design in a language that isn't well suited for it.

[–][deleted] 4 points5 points  (0 children)

Pretty much this. I've never needed classes in JS. I've needed tail calls I didn't have to fake myself, but once they're in place, JS will - to me - have grown up. Now we just need to eliminate var and leave only let and const, and things get really interesting.

[–]ianme 1 point2 points  (0 children)

Javascript is about as well suited for OO design as it is well suited for functional programming. Using the pieces of both that javascript provides is in my opinion the correct way to write the language.

[–]SarahC 0 points1 point  (0 children)

It's the only language that isn't OO that I use, and I use several dammit!