[elm-discuss] Re: Is over-use of 'let... in' considered an anti-pattern?

2016-10-05 Thread Simone Vittori
I agree with everything said, however there's a specific case where I personally try to avoid `let` if possible. Sometimes view functions can be quite big, hence it makes sense to split them into smaller composable functions. So far so good, but as soon as we introduce the `let ... in` block,

[elm-discuss] Re: Is over-use of 'let... in' considered an anti-pattern?

2016-10-04 Thread Max Goldstein
> > ... anyway I hope you get the idea. > If the real code was this short, I'd suggest inlining it, but the real code is probably long enough to warrant this style. > they start to *resemble *OO/imperitive style variable assignments > But they're not. You can't assign to the same value more

[elm-discuss] Re: Is over-use of 'let... in' considered an anti-pattern?

2016-10-04 Thread Richard Feldman
I think this is totally fine. Nothing to worry about. :) -- 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 elm-discuss+unsubscr...@googlegroups.com. For more