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

x, y = 1, 2, 3 does not fail #37502

Closed
twolodzko opened this issue Sep 10, 2020 · 1 comment
Closed

x, y = 1, 2, 3 does not fail #37502

twolodzko opened this issue Sep 10, 2020 · 1 comment

Comments

@twolodzko
Copy link

In Julia 1.5.1 (and earlier) the following code does not fail with error

julia> x, y = 1, 2, 3
(1, 2, 3)
julia> x, y
(1, 2)

I would expect this to fail, so that it prevents me from writing buggy code. Silently dropping values in assignments can lead to some ugly and hard to trace bugs.

@thofma
Copy link
Contributor

thofma commented Sep 10, 2020

Dup of #37132

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

No branches or pull requests

3 participants