Skip to content

Improve usability of constructors #21

@spyoungtech

Description

@spyoungtech

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:

d := Date(2025, 2, 27)

Instead of needing to do:

d := Date.new(2025, 2, 27)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions