Proposal for SentinelInputRange

Walter Bright newshound2 at digitalmars.com
Wed Feb 27 19:38:43 PST 2013


On 2/27/2013 6:10 PM, timotheecour wrote:
>>> how about a predicate isSentinel instead of a fixed sentinel value?
>>> That'd allow more flexibility such as more than one sentinel value.
>>
>> Not usable in a switch/case statement.
>
> why is that needed?

Look at the lexer.c source code.

tl,dr: PERFORMANCE!


More information about the Digitalmars-d mailing list