from Hacker News

Ten Things You Should Know About Haskell Syntax

by malloc47 on 9/5/12, 6:56 PM with 2 comments

  • by ggchappell on 9/6/12, 4:59 PM

    Very nice article.

    > 7. Functions Have Precedence over Operators

    Yup. The killer for me has always been things like

      f x:xs
    
    Never does what I want. But at least there is only a simple rule to remember.

    > 9. There is no Order

    Oooo, careful there. It may not matter what order I define f & g in, but the following means something else if I reverse the order of the lines:

      f 0 = 1
      f x = x
  • by rohshall on 9/6/12, 2:16 PM

    Fantastic article. Thanks for posting it.