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

Why Haskell is utterly verbose?

Name: Anonymous 2011-05-15 20:11

Lisp

pSym A [B:A@Rest] -> [[B Rest]]


Haskell

pSym a (b:rest) = if a == b then [(b,rest)] else []
pSym a [] = []


Lisp

Tree =: [[n 5 [n 5 n]] 4 [[n 5 n] 6 n]]


Haskell

data Tree a = Empty | Node (Tree a) a (Tree a)
tree = Node (Node Empty 5 (Node Empty 5 Empty)) 4 (Node (Node Empty 5 Empty) 6 Empty)

Name: Anonymous 2011-05-17 1:38

>>36
(I (can (match (parens) without) paren) matching.

Can
   you
      indent
            your
                code
            by
      hand
   without
tab?

(I (only have) to
   (press one
     (#\) for)
     (each #\()))

You,
 unless
  your
   code
    is
   indented
  like
 this,
        Will
            be
              a
               nightmare
              to
            indent
        correctly.
   Indentation
              is
                flawed,
              get
   over
it.

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