← Back to context

Comment by vips7L

4 days ago

It is not a feature. Every programming language since has decided this was a mistake.

Can you provide an example of that?

  • Here is an example of a 2006 rant that qualifies: https://steve-yegge.blogspot.com/2006/03/execution-in-kingdo...

    OO conflates many different aspects that are often orthogonal but have been conflated together opportunistically rather than by sound rigor. Clearly most languages allow for functions outside classes. It's clearly the case today especially with FP gaining momentum, but it's also clear back then when Java and the JVM were created. I think smalltalk was the only other language that had this limitation.

    Like others in this thread, I can only recommend the big OOPS video: https://youtu.be/wo84LFzx5nI