Targeting C
Max Samukha
spambox at d-coding.com
Fri Oct 23 09:30:45 PDT 2009
On Fri, 23 Oct 2009 18:16:29 +0200, Pelle M?nsson
<pelle.mansson at gmail.com> wrote:
>Andrei Alexandrescu wrote:
>> Yigal Chripun wrote:
>>> On 23/10/2009 13:02, bearophile wrote:
>>>> Chris Nicholson-Sauls:
>>>>
>>>>> I prefer this (Scala):
>>>>> list = list ++ (0 to 10)
>>>>
>>>> That's quite less readable. Scala sometimes has some unreadable
>>>> syntax. Python has taught me how much useful a readable syntax is :-)
>>>> Designing languages requires to find a balance between several
>>>> different and opposed needs.
>>>>
>>>> Bye,
>>>> bearophile
>>>
>>> how about this hypothetical syntax:
>>>
>>> list ~= [0..10];
>>
>> I'm not sure what the type of "list" is supposed to be, but this works
>> today for arrays:
>>
>> list ~= array(iota(0, 10));
>>
>>
>> Andrei
>What does iota mean?
A sequence of integral numbers. I guess the name comes from APL.
More information about the Digitalmars-d
mailing list