Personally I would expect it to behave the same in front of a numeric literal and in front of a variable. I do think most languages do that, but I haven’t actually tested that many and could br wrong.
Pretty much all languages do that. It’s a very basic language feature inherited from basic maths notation. Same as x - y subtracts y from x in pretty much any language that supports operators.
Personally I would expect it to behave the same in front of a numeric literal and in front of a variable. I do think most languages do that, but I haven’t actually tested that many and could br wrong.
Pretty much all languages do that. It’s a very basic language feature inherited from basic maths notation. Same as
x - ysubtracts y from x in pretty much any language that supports operators.