Example:
@concrete terse struct MyType{B}
a
b::B
end
x = MyType("hi", 2.0)
Here is what the full type looks like (the explicitly declared parameters always come first, regardless of the position of their corresponding fields):
julia> typeof(x)
MyType{Float64,String}
Options:
- No type params (baseline):
julia> x
MyType("hi", 2.0)
- Elipses:
julia> x
MyType{...}("hi", 2.0)
- Only the explicitly declared params:
julia> x
MyType{Float64}("hi", 2.0)
- Only the explicitly declared params, but with elipses:
julia> x
MyType{Float64,...}("hi", 2.0)
Example:
Here is what the full type looks like (the explicitly declared parameters always come first, regardless of the position of their corresponding fields):
Options: