News for hackers. Stuff that matters.
Re:Idiomatic Monads in Rust by kod on Thursday April 04, 2019 @04:05PM (#19576529)
Kotlin doesn't even have real pattern matching. Calling it integrating FP is a sad joke.
Re:Idiomatic Monads in Rust by nine_k on Thursday April 04, 2019 @06:04PM (#19577561)
It's got algebraic types, and a typeclasses proposal (with a PR!) was actively worked on, last time I checked.
Re:Idiomatic Monads in Rust by kod on Friday April 05, 2019 @11:55AM (#19583762)
Algebraic types without being able to conveniently destructure them is maybe half the benefit at best.
Re:Idiomatic Monads in Rust by dmitriid on Thursday April 04, 2019 @05:31PM (#19577319)
Pattern matching has nothing to do with FP.
Re:Idiomatic Monads in Rust by kod on Friday April 05, 2019 @11:57AM (#19583777)
Only if you think algebraic types have nothing to do with FP, in which case you have a very idiosyncratic definition of FP.