aDotInTheVoid / skate

Skateboard for the mind
Apache License 2.0
2 stars 0 forks source link

Print and return op #48

Open aDotInTheVoid opened 3 years ago

aDotInTheVoid commented 3 years ago

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