[erlang-questions] indentation-sensitive erlang

Kostis Sagonas kostis@REDACTED
Wed Mar 19 18:48:07 CET 2008


Ulf Wiger wrote:
> 
> h(X) ->
>     Y = case X of
>           a ->
>             {a}
>           b ->
>             {b}
>     end
>     Y


Granted I've not read Okasaki's blog,
   but why would you have the above
                          instead of:

   h(X) ->
       Y = case X of
             a ->
                {a}
             b ->
                {b}
           end
       Y


Kostis



More information about the erlang-questions mailing list