You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: