[Haskell-cafe] Why does Haskell have the if-then-else syntax?
Brian Hulley
brianh at metamilk.com
Thu Jul 27 11:33:27 EDT 2006
Jon Fairbairn wrote:
> On 2006-07-27 at 13:01+0200 Tomasz Zielonka wrote:
>> Also, after a few years of Haskell programming, I am still not
>> sure how to indent if-then-else.
>
> what I was alluding to in my footnote...
I think there's really only one way when it needs to occupy more than one
line:
if c
then t
else f
Regards, Brian.
--
Logic empowers us and Love gives us purpose.
Yet still phantoms restless for eras long past,
congealed in the present in unthought forms,
strive mightily unseen to destroy us.
http://www.metamilk.com
More information about the Haskell-Cafe
mailing list