-
Notifications
You must be signed in to change notification settings - Fork 45
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
Ellipsis #164
Comments
I prefer syntax errors, which are easy to detect and fix at compile |
Well it is easy enough to detect when |
... is not a statement in python, its an expression that expression that |
I meant it can be detected when the Ellipsis object is the only part of the statement, meaning it can be ignored, so that there is no ambiguous behaviour. Anyways, this isnt a major problem for me as I can easily remove them in a python ast rewrite phase before I invoking |
Ah, I see, yes that's true. But why? Why allow ellipsis in one |
Unlike statement def foo(a, b):
c = a + 1
... # Need to do blah blah
return c + b It is a bit arbitrary, but it seems like an easy win for people who use it in that way. |
OK, I can see some value in doing that. Not something I am particularly keen on since the only place I have ever seen/used ... as a statement is pyi files, but I will accept a patch for it. |
rapydscript-ng appears to have no support for ellipsis (
...
).It seems like simply treating this as
pass
would be sufficient for most case, as its other use as a complex slicer e.g. in numpy, is unlikely to work in rapydscript for other reasons.The text was updated successfully, but these errors were encountered: