|
|
|
|
|
by tzs
1897 days ago
|
|
I don't think that is a mathematics convention vs computer science convention thing. Most languages, whether aimed at mathematics or computer science, have exponentiation at higher precedence than unary minus. (JavaScript does not, but it also does not allow unary minus directly in front of the base of an exponentiation so you have to add parenthesis no matter which interpretation you want). The main places you find it the other way are spreadsheets and shells. Is there an explanation from the Nim authors as to why they made such an odd choice? |
|