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

Pages: 1-

Haskell is shit

Name: Anonymous 2011-12-13 1:03

data D = A Int | B Float

f :: String -> Bool -> D
f s b = (if b then A else B) (read s)

Name: Anonymous 2011-12-13 1:47

f s b = if b then A (read s) else B (read s)
But I see your point, creating a function with two types like that would be nice. Maybe it can be made to work with type families.

Name: Anonymous 2011-12-13 1:52

Static typing is shit.

Name: Anonymous 2011-12-13 3:59

Static typing isn't shit
Fixed that for you!

Name: Anonymous 2011-12-13 5:15

Name: Anonymous 2011-12-13 9:36

>>5
Any language with a ``wiki'' is for hipster faggots. Back to Starbucks, please!

Name: Anonymous 2011-12-13 10:35

>>6
touché

Name: Anonymous 2011-12-13 14:56

>>6
I find that it's nice to have information about a language organized in a wiki. Then again, Haskell is for hipster faggots.

Name: Anonymous 2011-12-13 16:10

>>4
No, no, it really is fucking shit.

Name: Anonymous 2011-12-13 17:03

>>6
Anybody who has a language complex is a hipster faggot. Back to the Apple store, please!

Name: Anonymous 2011-12-13 19:39

>>10
Jobs was a genius, too soon, to soon...

Name: sage 2014-02-02 7:52

dyntypes = moldiest anius

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