[erlang-questions] indentation-sensitive erlang

Ulf Wiger ulf@REDACTED
Wed Mar 19 19:23:51 CET 2008


Do you mean aligning the 'end' with the 'case'?

Simply because I couldn't figure out how to make it work easily. (:
I cannot blame Chris Okasaki for that one.

Let's say there's lots of room for improvement.

BR,
Ulf W

2008/3/19, Kostis Sagonas <kostis@REDACTED>:
> 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