In the Graphical CLI:
Expected behavior is to always return the result of calculation, or at least explain why ash is looking for a semicolon instead of the plus/minus/multiplication/division operator. Otherwise I think it could be very confusing.
Code:
> ash (100 - elemental_resistance($element[spooky])) / 100.0
Expected ;, found / ()
Returned: void
Code:
> ash ((100 - elemental_resistance($element[spooky])) / 100.0)
Returned: 0.46666666666666673
Code:
> ash 1+1
Expected ;, found + ()
Returned: void
Code:
> ash (1+1)
Returned: 2
Expected behavior is to always return the result of calculation, or at least explain why ash is looking for a semicolon instead of the plus/minus/multiplication/division operator. Otherwise I think it could be very confusing.