"where" would be nice though...
foo a b =
x + y
where
x = a
y = b
On 23 April 2017 at 10:17, Jan Tojnar <[email protected]> wrote:
> On Sunday, 23 April 2017 02:23:20 UTC+2, Witold Szczerba wrote:
>>
>> in real code things are much more complicated and confusing. I have
>> looked at the Todo.elm you prepared and (for me) it is much harder to
>> reason about.
>>
>
> I agree, it is especially confusing once we get to *destructing*:
>
> https://github.com/rtfeldman/elm-todomvc/blob/
> 8678c8bcaeb5cb4b3f87dbefb7a01b5fe492dbc7/Todo.elm#L44
>
> let – in allows quick visual distinction between definitions and the main
> statement.
>
> Cheers,
>
> Jan Tojnar
>
> --
> You received this message because you are subscribed to the Google Groups
> "Elm Discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>
--
You received this message because you are subscribed to the Google Groups "Elm
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.