Does Parameters.jl support a Varargs ... constuctor

Lincoln_Hannah
Tue, 21 Jun 2022 00:30:54 +0000
General Usage

a,b,c   = 1:3

@with_kw mutable struct T
    a
    b
end

T(;a,b) works
T(;a,b,c) fails

Can the kwargs constructor have a Varargs component X... ?
It allowed me to create one T(;a,b, X... ) = T(;a,b)

But T(;a,b,c) then gives a stack overflow error.

3 posts - 2 participants