
9 Mar
2009
9 Mar
'09
2:24 a.m.
On 2009 Mar 8, at 21:55, 7stud wrote:
Benjamin L. Russell
writes: Common Misunderstandings - HaskellWiki http://www.haskell.org/haskellwiki/Common_Misunderstandings
I thought I'd point out something wrong with the first beginner mistake listed on that page:
My tests show that the 'then' and 'else' do not have to be indented more than the 'if':
They do, but only within layout, i.e. a "let" or "do", because otherwise they fall outside the layout block. -- brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery@kf8nh.com system administrator [openafs,heimdal,too many hats] allbery@ece.cmu.edu electrical and computer engineering, carnegie mellon university KF8NH