Hi,
One nice addition to JAL would be, IMHO, the ability to treat sets of values.
It would be simplier to give some example, instead of describing:
var byte dummy
dummy = 100
if dummy IN [0..127] then ...... ; Will be TRUE
if dummy IN [50..100] Will be true
if dummy IN [50..100-1] Will be false
Of course, those literals could be replaced by variables also:
if dummy IN [low_value .. High_value] then ....
One step further would be to allow set of discrete values such as:
if dummy IN [12, 45, 87, 100, 255] will be true
and the same with variables
if dummy IN [min_value, 45, 87, 100, high_value]
The complement of the IN operator will be NOT IN as in:
if dummy NOT IN [min_value..max_value]
An advantage that I see is that there will be no regression with the current syntax, and that it is probably not too difficult to implement.
What do you think ?