I just want to point out that this is a feature in my eyes, not a bug. It's
very useful as a keyword override when splatting keywords.

On Sunday, June 12, 2016, Milan Bouchet-Valat <nalimi...@club.fr> wrote:

> Le samedi 11 juin 2016 à 19:46 -0700, colintbow...@gmail.com
> <javascript:;> a écrit :
> > I can enter the same keyword argument twice, and the second entry is
> > the one that gets used. A short example follows:
> >
> > f(x::Int ; kw::Int=0) = x * kw
> > f(2)
> > f(2, kw=3) #evaluates to 6
> > f(2, kw=3, kw=4) #evaluates to 8
> >
> > Is this desired behaviour or is it a bug? Based on a quick scan, I
> > can't quite tell if this is the same bug as issue 9535
> > (https://github.com/JuliaLang/julia/issues/9535), so thought I would
> > post here before filing anything. Also, I'm on v0.4, so I don't want
> > to file if this is already taken care of in v0.5.
> It also happens on 0.5. This sounds like a different (and simpler) bug
> than #9535, so filing a new issue would likely be useful. Even if it
> was done on purpose, the manual doesn't seem to mention it.
>
>
> Regards
>

Reply via email to