It's intentional, but maybe using `_` twice should be allowed?

On Thu, Aug 25, 2016 at 6:07 PM, Christoph Ortner <
christophortn...@gmail.com> wrote:

> Is this intended behaviour or a bug?
>
> julia> maximum( t for (t,_,_) in zip(x,y,z) )
> ERROR: syntax: local "_" declared twice
>
>
> julia> x = rand(3); y = rand(3); z = rand(3);
>
>
> julia> for (t, _, _) in zip(x, y, z)
>                   println(t)
>               end
> 0.5059694701992228
> 0.6291609082858327
> 0.298657434448903
>
>
> julia> maximum( t for (t,_,_) in zip(x,y,z) )
> ERROR: syntax: local "_" declared twice
>
>
>
>
>

Reply via email to