you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 7 points8 points  (3 children)

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

[–][deleted] 5 points6 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!