You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry I tried looking for existing issues, but couldn't find one.
There are multiple ways to write a NamedTuple, and there doesn't seem to be a rule that normalizes them:
julia> (a =1,)
(a =1,)
julia> (; a =1,)
(a =1,)
julia> (; a =1)
(a =1,)
julia> (; :a=>1)
(a =1,)
julia>format_text("(a = 1,)")
"(a = 1,)"
julia>format_text("(; a = 1,)")
"(; a = 1,)"
julia>format_text("(; a = 1)")
"(; a = 1)"
julia>format_text("(; :a => 1)")
"(; :a => 1)"
My preference would be:
julia> (; a =1)
(a =1,)
Thoughts on whether this is desirable?
The text was updated successfully, but these errors were encountered:
Sorry I tried looking for existing issues, but couldn't find one.
There are multiple ways to write a NamedTuple, and there doesn't seem to be a rule that normalizes them:
My preference would be:
Thoughts on whether this is desirable?
The text was updated successfully, but these errors were encountered: