JarrettBillingsley / Croc

Croc is an extensible extension language in the vein of Lua, which also wishes it were a standalone language. Also it's fun.
http://www.croc-lang.org
79 stars 12 forks source link

Drop 'ranged cases' #147

Closed JarrettBillingsley closed 9 years ago

JarrettBillingsley commented 9 years ago

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).