Closed davidfestal closed 9 years ago
Two things here:
=>
should stack – can be emulated by separately creating the contextif
should have a proper indentation after it, and then
and else
shouldn’t have any indentation before themif should have a proper indentation after it
Hm… which one is better?
if (c)
then x
else y
if (c)
then x
else y
Perhaps the issue is rather that then
and else
should introduce indentation, not if
.
If expression part is done. =>
is a complicated issue which I keep forgetting I’ve already tried to solve; I’ll create a new issue for that.
I prefer this (its more regular):
if (c)
then x
else y
I agree, and that’s what we have now.
The new let and if then else expressions allow doing some nesting like this :
However the Ceylon formatter formats it like that :