-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Labels
Description
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:
print (true ? 1 : 2)
Definition
This will define print in two places:
tokenizer/states/print.es6interpreter/states/print.es6
as StatementPrint. The code is exactly the same as the operator print
Formal Grammar
EBNF
@ = "print", [(newline | expression)]