handful and interval

Jakob Ovrum jakobovrum at gmail.com
Sun Sep 2 09:22:38 PDT 2012


On Sunday, 2 September 2012 at 14:49:34 UTC, Andrei Alexandrescu 
wrote:
> On 9/2/12 4:22 PM, Andrei Alexandrescu wrote:
> [snip]
>
> The alternative would be to simply define these as functions:
>
> if (a.among("struct", "class", "union")) { ... }
> if (b.between(1, 100)) { ... }
>
>
> Andrei

I prefer this.

There doesn't seem to be a clear vision for the 'in' operator. 
Let's not make the situation more complicated before we've 
figured that out. How do we know which uses of 'in' are abuse, 
and which are merely exploiting intuition justifiably?



More information about the Digitalmars-d mailing list