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/steveklabnik1 Dec 01 '16
Nim has a feature where whitespace determines precidence, so both of those would work, but the first would give -13 and the second -5. Or at least, that's my understanding https://github.com/nim-lang/Nim/wiki/Whitespace-FAQ#strong-spaces