Right now, the constructor provided by __New just accepts a pointer argument. To actually instantiate these types as a user, alternate constructors are required.
However, it would be ideal if, somehow, the __New constructors could also work as a standin for .new.
That is, users could do something like:
Instead of needing to do:
d := Date.new(2025, 2, 27)
Right now, the constructor provided by
__Newjust accepts a pointer argument. To actually instantiate these types as a user, alternate constructors are required.However, it would be ideal if, somehow, the
__Newconstructors could also work as a standin for.new.That is, users could do something like:
Instead of needing to do: