Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
creata
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
71 ms
·
991.
▲
by
creata
6y ago
I think you misunderstand. I mean that merely by implementing the Monad typeclass, you get a ton of methods (mapM_, join, etc.) for free. You can't do that in Rust right now.
992.
▲
by
creata
6y ago
The obvious answer to that is then "any trait consisting only of methods which take a Self parameter". But given (a) how confusing Rust's orphan rules already are to the average programmer, and (b) how easy it is to implement
993.
▲
by
creata
6y ago
> Option and Result are Monads. Surely he misses do-notation. You can find monads everywhere if you look hard enough. But Haskell actually lets you use those discoveries for massive code reuse, while Rust forces you to write stuff like
994.
▲
Blackboard2
(durackpl.com)
1 points
by
creata
6y ago
|
0 comments
995.
▲
Desmos.com/Calculator
1 points
by
creata
6y ago
|
1 comments
996.
▲
by
creata
6y ago
I don't know what goes on in the minds of interviewers, but if I had to guess, they use recursion to test the interviewee's ability to reason inductively --- which, of course, is necessary for writing even simple loops. Maybe a qu