I had added the case 'a' .. 'z': syntax when writing a lexer in Croc but it just seems like such a niche feature. It doesn't improve performance, doesn't do much for readability, makes it easy to make overlapping/conflicting cases, complicates the semantic phase of the compiler, and its semantics (high value INclusive) are different from the other use of '..' in numeric for loops (high value EXclusive).
I had added the
case 'a' .. 'z':
syntax when writing a lexer in Croc but it just seems like such a niche feature. It doesn't improve performance, doesn't do much for readability, makes it easy to make overlapping/conflicting cases, complicates the semantic phase of the compiler, and its semantics (high value INclusive) are different from the other use of '..' in numeric for loops (high value EXclusive).