-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Closed
Labels
compiler:loweringSyntax lowering (compiler front end, 2nd stage)Syntax lowering (compiler front end, 2nd stage)
Description
julia> const (a,) = (1,2,3)
(1, 2, 3)
julia> a
1
julia> isconst(@__MODULE__, :a)
true
vs
julia> const (b...,) = (1,2,3)
(1, 2, 3)
julia> b
(1, 2, 3)
julia> isconst(@__MODULE__, :b)
false
I'm not really a fan of these complex destructurings in const at all, but they should at least be consistent.
Metadata
Metadata
Assignees
Labels
compiler:loweringSyntax lowering (compiler front end, 2nd stage)Syntax lowering (compiler front end, 2nd stage)