Hello! I want to define my own composite type for my dataset, e.g., the following is a simpler version of what I want to define:
type MyData
data::Matrix{Float64}
length::Int64
size::Tuple{Int64,Int64}
end
When I wrote inner constructors for this type, I got an error, and apparently, julia does not like the field names such as length and size since they are predefined function names in the Base module. Can we get away from this kind of restrictions? Of course if I replace length and size in MyData by len and dsize, everything works. But in general, we should have flexibility in naming fields of any composite types. I would appreciate your comments!
Best,
BVPs