Re:Functors and Monads for People Who Have Read Too Many “Tu...
by wyager on Saturday June 26, 2021 @12:19AM
(#27639067)
This blog post is maybe 10% about monads and 90% dealing with why you can’t have them in rust (no HKTs). I hardly think that’s more approachable…
Re:Functors and Monads for People Who Have Read Too Many “Tu...
by aszen on Saturday June 26, 2021 @01:42AM
(#27639423)
Is that true though, you can't define a generic monadic interface yes but you can implement the same interface for your data types.
That makes it less useful as the post says but still pretty powerful in some cases
Re:Functors and Monads for People Who Have Read Too Many “Tu...
by staticassertion on Saturday June 26, 2021 @12:51AM
(#27639207)
It was for me.
Re:Functors and Monads for People Who Have Read Too Many “Tu...
by the_af on Saturday June 26, 2021 @03:39AM
(#27639958)
What's difficult about Haskell syntax? Or do you mean "it's an issue because it doesn't look like C, Java or Python?".
Re:Functors and Monads for People Who Have Read Too Many “Tu...
by magicalhippo on Saturday June 26, 2021 @12:15PM
(#27643128)
For me it is indeed the latter. I can glean a lot of interesting stuff from other languages as long as they look a bit familiar. Haskell I usually come to a dead stop pretty quickly.
I've tried to read up on some Haskell basics, but the main issue is I don't have any real incentive to use Haskell, I have other hobbies that are more tempting, so I forget pretty quick.
The Java-ish version of the Functor interface for instance was quite readable to me, ugly or not.
I agree with you entirely that the Haskell syntax is probably one of the biggest issues with monads being approachable.