Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print and return op #48

Open
aDotInTheVoid opened this issue May 29, 2021 · 0 comments
Open

Print and return op #48

aDotInTheVoid opened this issue May 29, 2021 · 0 comments

Comments

@aDotInTheVoid
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant