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

Put in a syntax error explicitly for when you do say <expr> #49

Open
masak opened this issue Oct 18, 2015 · 1 comment
Open

Put in a syntax error explicitly for when you do say <expr> #49

masak opened this issue Oct 18, 2015 · 1 comment

Comments

@masak
Copy link
Owner

masak commented Oct 18, 2015

I do this all the time, expecting that it'll work. It doesn't work in Python, and we're going to steal that doesn't-work part from Python.

$ python3
>>> print "OH HAI"
SyntaxError: invalid syntax

But we're going to steal a hypothetical error message from Perl 6. 😃 Something like Illegal use of listop function call syntax. Did you mean 'say(<expr>)' ?

@masak masak closed this as completed in 48eb3d8 Oct 19, 2015
vendethiel pushed a commit to vendethiel/007 that referenced this issue Oct 20, 2015
I keep writing this by mistake, because I'm used to it in Perl 6.
Might as well put in a good error message for it.

Closes masak#49.
@masak
Copy link
Owner Author

masak commented Nov 13, 2015

Re-opening 'cus of the 66517bc revert.

The plan is to come back and do this but in a way that doesn't go down the garden path on blocks, thinking they're TTIAR objects.

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

No branches or pull requests

1 participant