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

/prog/ is moving slowly

Name: Anonymous 2008-07-03 9:53

so I will write fictional nonsensical Haskell code with nice Unicode

— Computes the anus of y
x :: Num a ⇒ a → a
x = λy·y×(y÷2)

— Charlie Brown
foo :: String → String
foo x = case lookup “x” x of
                 Just yy
                 Nothing → x

Name: Anonymous 2008-07-03 18:48

>>15
It's ugly and impractical. The compiler tells you that you have issues at line 42, column 64, so you, used to the constant width of characters, know (approximately), where is the 64rd character. OH WAIT LOL NO YOU DON'T the line is has some vertical bars and semicolons, so 64 is not where you think it is.

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