I am not a very good Julia programmer (despite reading the doc numerous times).
For what I am trying to code at the moment, I am trying to create something close to a Python class.
I thought of using a mutable struct, but I realized that one cannot initialize a variable as one of it’s argument. Something like
mutable struct Test a b c = 3 end
returns the error
ERROR: syntax: "c=3" inside type definition is reserved Stacktrace:  top-level scope at none:0
Ultimatively what I want to do would be something like a
Class Test def __init__(self, var1, var2): self.var1 = var1 self.var2 = var2 self.matrix = foo(shape(var1))
And I don’t know how to do this in Julia if not for declaring
matrix as a
const outside of the
struct which would be unpracticle.
I have already read the doc on constructors and composite types so please do not just tell me to “read the doc again”.