Is it possible to overwrite the default constructor like:
struct A
field1
field2
field3
end
function A(f1, f2, f3)
# do some operation here like log / parameters inspection
# return a new instance here
end
I don’t actually know how to create a new instance, if I call A then it ends up an infinite recursion.