4 ms·
This blend of functional and oo programming was pioneered by scala.
by thefaux 3y ago
This blend of functional and oo programming was pioneered by scala.
- hocuspocus 3y agoScala also supports structural typing, even though it's a bit clunky and against its nature. And advanced typelevel shenanigans you see in TS usually have their counterpart in Scala, especially in Scala 3's meta-programming features.
- Zambyte 3y agoLisp of course supported both decades earlier though :)
- thefaux 3y agoSure. Everything is reducible to lisp. But even though lisp had the same capabilities decades earlier, scala is the language that brought them to the mainstream (which may well because of the historical accident that twitter's backend was rewritten in scala). I don't love scala but it has been hugely impactful.
- koito17 3y agoThe meaning of "mainstream" changes throughout the years. Remember that Common Lisp started as quite literally the XKCD joke of "14 competing standards", except it actually worked -- in the sense that this 15th competing standard killed all the other ones and gained widespread adoption in the Lisp community. Tons of vendors threw money and effort at the situation, and it all started as an ARPA manager's idea. Of course, we live in different times now... But Zetalisp is one fairly popular Lisp I can think of that had funcallable objects. Whether the idea was appreciated or preferred over alternatives is a separate thing entirely, of course. I would assume most people would use a simple let-over-lambda to achieve the same effect as funcallable objects.
- d13 3y agoWasn’t it Scheme?