simit
simit copied to clipboard
Add conditional operator
In order to avoid these kind of if-then-else :
if booleanCondition variable = TrueValue else variable = FalseValue end
Is it possible to add a conditional operator ?
variable = (boolean condition) ? (TrueValue) [:(FalseValue)];
Ideally, this operator should work for all types and sets.