My Brain Is Hard-Wired Against ==; Help Me, Julia

I was a bit surprised that worked, it’s less terrifying since without parentheses this is an error:

if a = b

so even if you grew up with them needed, as in C, I would stop using them, since they’re not needed and are harmful. This can’t be fixed it seems (or can it since always a bug [waiting to happen]?), as it would be a breaking change, but I highly recommend the linters should block it.

I’m not sure why it’s allowed (only for compatibility with C?), and what the meaning of this is, since it’s not a tuple as I thought, that would be:

julia> (a = b,)
(a = true,)

unlike:

julia> (a = b)
true
1 Like