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
The compiler should rejects the following program:
foo: decimal[3] @public def foo(): self.foo = [1, 2.1, 3]
because the global variable and the function have the same name and it is very confusing to write such program.
Checking name duplication in parser.py
The text was updated successfully, but these errors were encountered:
@yzhang90 On it 👍
Sorry, something went wrong.
get_var
var
@fubuloubu I'm working on this. Do you think the following should be allowed?
def foo(): foo: num
I'm leaning towards yes, as I'm thinking that uniforming naming can increase readability.
I'm not a big fan of that personally, but I think it would work because foo() is in the self "namespace" so that's fine
foo()
self
@yzhang90 @DavidKnott was poking around at bugs that could be addressed and ended up here, but it looks like this issue can be closed with #659 merged?
@jakerockland that is correct ;) sorry for the later reply.
DavidKnott
No branches or pull requests
What's your issue about?
The compiler should rejects the following program:
because the global variable and the function have the same name and it is very confusing to write such program.
How can it be fixed?
Checking name duplication in parser.py
Cute Animal Picture
The text was updated successfully, but these errors were encountered: