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!