[Haskell-beginners] Re: if True than let...

Heinrich Apfelmus apfelmus at quantentunnel.de
Fri Jun 26 07:30:22 EDT 2009


Andrew Wagner wrote:
> Try this: let b = if a == True then "+" else "-" in ...

The little figurine of Dijkstra in my head is urging me to write this as

  let b = if a then "+" else "-" in ...

instead. ;)


Regards,
apfelmus

--
http://apfelmus.nfshost.com



More information about the Beginners mailing list