hmmm I agree, if we want to make it a function though then we can replace 
the `List.range` function with `..` operator and construct ranges like this 
`1..2` (no need for brackets)

This is how it's done in ruby and it's a function :) , the range syntax 
removal is acceptable in this situation but replacing it with `List.range 1 
5` seems liitle bad for me

As for floating points we could remove support for them altogether as I 
don't think anyone would use it anyway, if intervals are needed then a data 
structure other than lists is going to be better.

بتاريخ الأحد، 13 نوفمبر، 2016 9:04:52 م UTC+2، كتب Robin Heggelund Hansen:
>
> Fixing the docs could of course be done, and you're right, it's not 
> something that's hard to understand. However, the question you should be 
> asking is "is there any reason why range isn't  a function to begin with?"
>
> søndag 13. november 2016 16.58.32 UTC+1 skrev أحمد حبنكة følgende:
>>
>>
>>
>> بتاريخ الأحد، 13 نوفمبر، 2016 1:53:05 ص UTC+2، كتب أحمد حبنكة:
>>>
>>> I was reading the elm-dev list and I knew that elm 0.18 removed the 
>>> range syntax, so code like this : 
>>> [2..3]
>>> won't work anymore.
>>>
>>> I want to know what are the foundations behind this decision ?
>>> hmmm if it is "can't find it in the documentation" then fix the 
>>> documentation, when the documentation is unfixable for this feature I think 
>>> it may be better to remove it, was this the case ?  
>>>
>>
>> The syntax of ranges is not specific to haskell, ruby and some other 
>> languages implement it.  
>>
>> Now for the fact that most new coders ask "what's this" or "how do I make 
>> a range" maybe the problem lies in the docs not in the feature itself.  
>>
>> still if it is confusing for most beginners then I agree it's probably 
>> better to remove it although I find hard to believe that this feature is 
>> hard to understand !! 
>>
>

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