handful and interval

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Mon Sep 3 15:38:16 PDT 2012


On 9/3/12 8:01 PM, David Nadlinger wrote:
> On Monday, 3 September 2012 at 14:04:18 UTC, Andrei Alexandrescu wrote:
>>> A sufficiently smart compiler (tm) could
>>> optimize this to a efficient string "prefix switch statement" just as
>>> well…
>>
>> I agree. But then http://c2.com/cgi/wiki?SufficientlySmartCompiler.
>
> This is exactly my point: My feeling is that the increased complexity by
> introducing a second syntax resp. a new special case (i.e. among)

"among" is a simple function, not a special case.

Andrei


More information about the Digitalmars-d mailing list