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