Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Haskell

Name: Anonymous 2014-01-26 13:21

Code written in Haskell is guaranteed to have no side effects.

Because no one will ever run it! LLLLEEEELLLLL

Name: Anonymous 2014-01-27 12:40

>>6
In Haskell, the state update in StateT makes the whole state get copied even if you only needed to update just a little tidbit. Throwing away megabytes of memory just to update a double is a little inefficient, don't you think?

Monad transformers are such a mess that it's easier just to keep everything in IO with IORefs. You get the same (nonexistent) level of type safety, and no obscure "ContT( StateT (ErrorT (WriterT (ReaderT (MaybeT IO" bullshit.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List