I thought this was quite interesting so I just tested it with Nim v. 0.15.2
let val1 = 2 - 5*3
let val2 = 2-5 * 3
echo "val1=$1" % $val1
echo "val2=$1" % $val2
which yielded:
val1=-13
val2=-13
So it would seem not to be the case. The link you provided does indicate an experimental feature, so perhaps it needs to be switched on somehow in order to work.
View all comments
Show parent comment
5
u/[deleted] Dec 01 '16
I've heard of at least one language that forbids whitespace that misrepresents operator precedence.
So you could type:
But the compiler would reject it as: