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?


Really annoying follow-up:

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

· · Web · 2 · 0 · 0

@pkra @christianp I agree. I think unary operations are "supposed" to bind more than binary, or atleast that is what it feels like in practice

@christianp I personally consider implicit operators as higher priority, i.e. `x/(y*z)` or `(x*y)!`, unfortunately there's really no right answer here

perhaps you could start deducting points when there's ambiguous notation, that could hammer the point in nicely and make the students use fractions or brackets
Sign in to participate in the conversation

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!