thebennybox-Community / Community-Compiler

MIT License
16 stars 5 forks source link

range checks #123

Open furesoft opened 6 years ago

furesoft commented 6 years ago

add range checks:

like in c# you write: if(variable < max && variable > min) {...}

but its a hugh stuff if you have more than 1 range checks.

if(variable in [min...max]) {}

then you dont double variable call its shorter

rdrpenguin04 commented 6 years ago

We already have [a...b], so all we would need is like [min...max].contains(variable).