It's "tell me not to use ambiguous notation" time!
Context: I have to interpret students' ambiguous notation.

I want to interpret `xy` as `x*y`.
Should `x/yz` be `(x/y)*z` or `x/(y*z)`?

Yes, it's ambiguous, but of the two options, which would be the least surprising?

9 favourites 1 retweet

In reply to @christianp

... now I have vague memories of seeing a comment along the lines of "juxtaposition binds more tightly than operator symbols" somewhere in someone else's code

5 favourites 0 retweets

In reply to @christianp

Really annoying follow-up:

Is `xy!` equivalent to `(x*y)!` or `x*(y!)` ?

2 favourites 0 retweets

In reply to @christianp

Is now a good time to link to the thing I made that lets you make up your own order of operations? checkmyworking.com/misc/samdob/

4 favourites 1 retweet

View this tweet on twitter.com

This tweet as JSON