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

Monads

Name: Anonymous 2009-03-16 7:10

How are monads different than side effects?

Name: Anonymous 2009-03-16 22:38

I've never done any serious Haskell programming, but I learned what monads would be useful for from Erlang:

{Token1, Rest1} = parseShit(Input),
{Token2, Rest2} = parseShit(Rest1),
{Token3, Rest3} = parseShit(Rest2),
% do shit with Tokens, return {Result, Rest3}


I presume monads are for converting that into

Token1 = parseShit(Monad),
Token2 = parseShit(Monad),
Token3 = parseShit(Monad),
% do shit with Tokens, return Result


But every buttfucking, shiteating, micropenised Haskellite always waxes philosophically and orgasmically about endless academic BULLSHIT about monads instead of actually telling what the fuck they're for!  Just like this >>4 dickhead.

Fuck Haskellers.  Cool language, though.

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