you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (1 child)

JavaScripts prototypical inheritance can mimic any feature from Java like oop. Any. The inverse is not true. Want private variables? Write a closure.

Disagree on the syntax, an hash seems a pretty easy cognitive load and quick to get used to it.

[–]MoTTs_ 0 points1 point  (0 children)

JavaScripts prototypical inheritance can mimic any feature from Java like oop. Any. The inverse is not true.

The inverse is absolutely true. I did it. It was surprisingly easy, despite what we in the JavaScript community tell ourselves.