Open Lincoln-Hannah opened 3 months ago
Is there a syntax that works with parametric types. The below gives an error.
struct A{T} a::Int64 end x = A{1}(1) @Setfield.set x.a = 2
It is a recurring question. The answer is no, see the following for why and alternative patterns:
Is there a syntax that works with parametric types. The below gives an error.