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

In a paragraph...

Name: Anonymous 2011-12-27 8:14

or two, describe to me why you love functional programming and lisp/scheme/haskell so damn much /prog. You guys seem to be convinced that it's a superior way to program when conceptually it seems rather limited in comparison to imperative programming.

Name: Anonymous 2011-12-28 9:10

The Haskell Cabal > Imperialists

Name: Anonymous 2011-12-28 15:01

Haskell is shit. fuck you faggots

Name: Anonymous 2011-12-28 17:10

>>40

If you are free to arbitrarily mutate the matrices, then you must pass them by copy. If they are immutable, then you can always pass by reference.

>>39

sounds like const in seeples, except the other way around.

Name: Anonymous 2011-12-28 17:14

>>39
Nope. Here's a non-monadic function calling a monadic one.

import Control.Monad.State

-- f is pure
f :: Int -> Int
f = evalState incWithState

-- incWithState runs in the State monad
incWithState :: State Int Int
incWithState = do
  y <- get
  put (y + 1)
  get

Name: Anonymous 2011-12-28 20:21

Immutability is a very powerful invariant to code against, not a restriction.

Name: Anonymous 2011-12-28 21:07

>>45
It's shit either way, which causes Haskell itself to be fucking shit.

Name: Anonymous 2011-12-29 7:12

>>46
No.

Name: Anonymous 2011-12-29 10:24

I'm amused by how C++ tards think "everything is a value" means "everything passes by value.

No.

To put it in your terms, everything passes by const reference.

Name: Anonymous 2011-12-29 14:49

If you're too fucktarded to read one of the hundreds of “paragraphs” about the benefits of functional programming, go fuck yourself and change fields, in no particular order.

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