skiplang / skip

A programming language to skip the things you have already computed
http://skiplang.com
MIT License
1.97k stars 66 forks source link

if/then/else unexpected behavior #187

Open leinadsepol opened 4 years ago

leinadsepol commented 4 years ago

When we wrote value = if (test) {v1} else {0.0} - v2; We expect to have something equals to if (test) {v1 - v2} else {- v2} but it's equals to if (test) {v1} else {- v2}; A message should warn to use parentheses when if/then/else is used with operators .