News for hackers. Stuff that matters.
Re:The Big Oops: Anatomy of a Thirty-Five Year Mistake by virgilp on Thursday July 24, 2025 @08:58AM (#44670122)
There are a handful of (somewhat exotic) languages that support multiple dispatch - pretty much, all those listed by you. None of the mainstream ones (C++, Java, C# etc) do.

(also Common Lisp is hardly a poster child of OOP, at best you can say it's multi-paradigm like Scala)

Re:The Big Oops: Anatomy of a Thirty-Five Year Mistake by igouy on Thursday July 24, 2025 @11:54AM (#44672232)
Multi-methods do seem like a missed opportunity:

https://nice.sourceforge.net/visitor.html

Re:The Big Oops: Anatomy of a Thirty-Five Year Mistake by pjmlp on Friday July 25, 2025 @01:02PM (#44685440)
At least we have Julia and Clojure as more mainstream versions of them.

Still it isn't CLOS.

Re:The Big Oops: Anatomy of a Thirty-Five Year Mistake by pjmlp on Thursday July 24, 2025 @09:40AM (#44670578)
I guess Julia and Clojure are exotic.

Since when do OOP languages have to be single paradigm?

By then point of view, people should stop complaining about C++ OOP then.

Re:The Big Oops: Anatomy of a Thirty-Five Year Mistake by virgilp on Friday July 25, 2025 @10:21AM (#44683429)
> Since when do OOP languages have to be single paradigm?

What I really meant to say with that was that it's lisp at its core -i.e. if one wants to place it squarely in one single paradigm, imo that one should be "Functional".

I was just surprised to see it listed as an example of OOP language, because it's not the most representative one at that.

Re:The Big Oops: Anatomy of a Thirty-Five Year Mistake by pjmlp on Friday July 25, 2025 @01:01PM (#44685420)
The Art of Metaobject protocol was written and researched in Lisp.

Provides an OOP programming model, that no mainstream language, other than Common Lisp fully supports.

https://en.m.wikipedia.org/wiki/The_Art_of_the_Metaobject_Pr...

Dylan, Julia and Clojure only have subsets of it.

Re:The Big Oops: Anatomy of a Thirty-Five Year Mistake by olvy0 on Friday July 25, 2025 @11:57AM (#44684659)
C# does support a form of multiple dispatch, through the dynamic keyword. Used it myself for writing a parser.

https://shawnhargreaves.com/blog/visitor-and-multiple-dispat...