I'm making a language where - is unary negation and ? is a postfix operator that prints and returns its argument (so foo? is the same as Rust's {println!("{}", foo); foo})
Would you expect -1? to
:regional_indicator_a:: print 1, so the ? binds tighter than the -
:regional_indicator_b:: print -1, so the - binds tighter than the ?
:regional_indicator_c:: Not compile at all, and be a syntax error for ambiguity
https://discord.com/channels/273534239310479360/490356824420122645/848235741774479360
Small poll:
I'm making a language where - is unary negation and ? is a postfix operator that prints and returns its argument (so foo? is the same as Rust's {println!("{}", foo); foo})
Would you expect -1? to :regional_indicator_a:: print 1, so the ? binds tighter than the - :regional_indicator_b:: print -1, so the - binds tighter than the ? :regional_indicator_c:: Not compile at all, and be a syntax error for ambiguity