I can enter the same keyword argument twice, and the second over-rules the first #16937
Labels
breaking
This change will break code
compiler:lowering
Syntax lowering (compiler front end, 2nd stage)
error handling
Handling of exceptions by Julia or the user
Milestone
A short example:
I'm on v0.4, but I asked about it on the julia-users list here, and was told you can still do this in v0.5. The link also contains an argument for why this might be considered a feature and not a bug. Personally, it feels more like a bug to me - but I am a very small voice.
I stumbled onto this when typing out several keyword arguments, and my mind was still on the previous keyword as I typed the next one, and so I accidentally typed it twice. Easy to do, and it took me quite a while to work out where I'd gone wrong.
The text was updated successfully, but these errors were encountered: