Hacker News new | ask | show | jobs
by cynicalkane 4983 days ago
Is there actually a notation and + operator for which 1 + 1 = 2 is ambiguous? Only being semi-rhetorical, I'd be interested to know if there is one. (Modular arithmetic is not considered ambiguous, at least not in the math neck of the woods.)
2 comments

Not really answering your question, but more to the point of the discussion in my opinion, a() + b() could be ambiguous if a() and b() are functions with side effects and the evaluation order of the +-operator is not specified.
1 + 1 = 10b is what he's saying.
Yes, that's what I meant - even "1 + 1 = 2" can be ambiguous if no context is provided.