It's also worth mentioning that adding syntax for something usually
indicates that it's a "core" feature.

In C-like languages, looping from integers in a range is the key iteration
structure. But in Elm, fold and map are much more important. So having
special syntax could give beginners the idea that [..] is a primary
iteration tool, when it actually comes up in relatively few cases.

On Mon, Nov 14, 2016 at 3:13 PM, Francesco Orsenigo <
[email protected]> wrote:

> Yup.
> It is just not used often enough to warrant special syntax.
>
> On Tue, Nov 15, 2016 at 10:09 AM, Witold Szczerba
> <[email protected]> wrote:
> > I think List.range is just fine. No need for special syntax and strange
> > function names like ".." (hard to browse, find online, etc.).
> >
> > On Mon, Nov 14, 2016 at 10:29 PM, أحمد حبنكة <[email protected]>
> > wrote:
> >>
> >> What do you think about my suggestion in previous reply ? replacing
> >> List.range with List.(..) operator ?
> >>
> >>
> >> بتاريخ الاثنين، 14 نوفمبر، 2016 2:43:49 ص UTC+2، كتب Max Goldstein:
> >>>
> >>> Sometimes it's useful to pass arguments to List.range and have it be
> >>> empty when a > b.
> >>>
> >>> Perhaps there should be List.rangeWithStep 5 1 -1 to solve your
> problem.
> >>
> >> --
> >> 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 a topic in the
> > Google Groups "Elm Discuss" group.
> > To unsubscribe from this topic, visit
> > https://groups.google.com/d/topic/elm-discuss/z8t8u2f3iWk/unsubscribe.
> > To unsubscribe from this group and all its topics, 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.
>

-- 
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.

Reply via email to