News for hackers. Stuff that matters.
Re:When FP? And When OOP? (2013) by AnaniasAnanas on Monday January 28, 2019 @05:55AM (#19016481)
Please do correct me if I am wrong, but isn't multiple dispatch basically typeclasses + pattern matching?
Re:When FP? And When OOP? (2013) by sifoobar on Monday January 28, 2019 @06:00AM (#19016507)
But that would still be single dispatch, right?

Multiple dispatch means functions are generic, and all arguments are considered when deciding which implementation to call.

Snigl supports both multiple dispatch and pattern matching, as does Common Lisp.

Re:When FP? And When OOP? (2013) by hesselink on Monday January 28, 2019 @11:04AM (#19018494)
Haskell type classes by default pick the implementation based on a single type variable in its signature, but it can occur in multiple positions (including the return type). A commonly used language extension (multi parameter type classes) extends this to an arbitrary number of type variables.
Re:When FP? And When OOP? (2013) by AnaniasAnanas on Monday January 28, 2019 @06:56AM (#19016782)
As far as I know, all of the arguments are considered when deciding which implementation to call on typeclasses.