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

Detection of illegal assignments is imperfect #1780

Closed
Kodiologist opened this issue May 23, 2019 · 0 comments · Fixed by #1983
Closed

Detection of illegal assignments is imperfect #1780

Kodiologist opened this issue May 23, 2019 · 0 comments · Fixed by #1983
Labels

Comments

@Kodiologist
Copy link
Member

Kodiologist commented May 23, 2019

(setv True 3) is a HySyntaxError, but (defn f [True] True) (f 3) works without complaint, which is problematic because it leads to hy2py generating invalid Python code:

$ echo '(defn f [True] True)' | hy2py 
def f(True):
    return True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant