Skip to content
This repository was archived by the owner on Aug 24, 2021. It is now read-only.
This repository was archived by the owner on Aug 24, 2021. It is now read-only.

Add constructors for generated types. #86

@jamiebrynes7

Description

@jamiebrynes7

Currently, the only way to create generated types is to use the object initializer syntax (or at least that's what its called in C#). Instead, we should provide a constructor as well to cut down the verbosity.

Currently we have:

improbable::Coordinates { 
	x: 0.0, 
	y: 0.0, 
	z: 0.0 
}

where we could have:

improbable::Coordinates::new(0.0, 0.0, 0.0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    ✨ featureNew feature or request

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions