Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

"JavaScript has strong object-oriented programming capabilities"

What would be an example of a language with weaker OOP capabilities?

PS: "The bad parts" section did not fit the page?



    > What would be an example of a language with weaker OOP capabilities?
Something without the concept of objects built in? C?


That's absent OOP capabilities.


No, C is perfectly capable of OOP. I can't think of a general purpose language that inherently isn't.


Java would be an example of a language with weaker OOP capabilities. Javascript can emulate classic OO inheritance and it also supports prototypical inheritance. Crockford covers this in his Good Parts book, and you can find stuff around the web.


This way I can say that Java supports OO inheritance and can emulate prototypal inheritance (this can be done in C# and I suspect in latest Java). I think the correct statement is that "JavaScript supports a simple OOP model".




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: