Stupid little iota of an idea

bearophile bearophileHUGS at lycos.com
Sun Feb 13 14:26:09 PST 2011


Andrej Mitrovic:

> I'm getting more and more convinced to join the iota camp. The new
> syntax barely saves any characters, and is potentially confusing.


Simen kjaeraas:

> This is also an interesting point. If a..b were to be a separate type,
> opSlice would no longer need to exist, it could be a simple overload
> of opIndex.

See the last part, about __getitem__ and slice() of Python:
http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D&article_id=129228

Bye,
bearophile


More information about the Digitalmars-d mailing list