
22 Oct
2006
22 Oct
'06
1:16 p.m.
Henning Thielemann wrote:
1. 'if' syntax should be teached as if a then b else c This indentation makes pretty clear, what is condition, and what is the result in both cases. It just resembles case a of True -> b False -> c .
The problem with this is that in a do block it forces me to use /two/ indentation levels, instead of one, e.g.
if test then do something more else do anotherthing stillmore
versus
if test then do something more else do anotherthing stillmore
Ben