logoalt Hacker News

carderneyesterday at 8:56 AM2 repliesview on HN

I was hoping the parentheses themselves would be flipped. Like this:

> 1 + )2 * 3(

(1 + 2) * 3


Replies

AmbroseBierceyesterday at 9:11 AM

I think surrounding the operand would make slightly more sense, as in 1 + 2 (*) 3 as if it's a "delayed form" of the operation that it represents.

show 1 reply
dgoldstein0yesterday at 9:06 AM

Same.

That said if you try to use that with ordinary parentheses usage it would get ambiguous as soon as you nest them

show 1 reply