We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This proposal outlines the proposed print statement.
print
print as an unary operator results in odd an unexpected behavior. This is often undesired and also requires unnecessary parenthesis around ternaries:
print (true ? 1 : 2)
This will define print in two places:
tokenizer/states/print.es6
interpreter/states/print.es6
as StatementPrint. The code is exactly the same as the operator print
StatementPrint
EBNF
@ = "print", [(newline | expression)]
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This proposal outlines the proposed
print
statement.Overview
print
as an unary operator results in odd an unexpected behavior. This is often undesired and also requires unnecessary parenthesis around ternaries:Definition
This will define
print
in two places:tokenizer/states/print.es6
interpreter/states/print.es6
as
StatementPrint
. The code is exactly the same as the operatorprint
Formal Grammar
EBNF
The text was updated successfully, but these errors were encountered: