-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
e.g. I imagine a syntax like
@sum_type @kwdef AT begin
A(common_field::Int = 3, a::Bool = true, b::Int)
B(common_field::Int = 1, a::Int, b::Float64 = 4.0, d::Complex)
endand so it will work creating new all keywords constructors for each variant just like the kwdef macro works
julia> A(; b = 4)
A(3, true, 4)::ATI will try to work out the details if this feature is welcomed
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels