Open joaquinpelle opened 2 years ago
Julia now supports annotating individual fields of a mutable struct with const annotations. It would be nice if Parameters.jl allowed it, as
@with_kw mutable struct T x::Int const y::Float64 end
Yes that would be an excellent addition.
Note that Base.@kwdef does support this. So, with a re-write of Parameters on top of @kwdef, this would be taken care of.
Base.@kwdef
@kwdef
Julia now supports annotating individual fields of a mutable struct with const annotations. It would be nice if Parameters.jl allowed it, as