Skip to content

Casting Intrinsics #15

@WireWhiz

Description

@WireWhiz

Need a standard way to cast types to other types. I don't think I'm going with the rust "as" syntax, since IMO it's really unergonomic to type. Instead I think we're going to go with the approach of a to_y(x) function standard. With the way "member" functions will work, with the first argument of any function implicitly usable as a "self" argument this should be able to be written as x.to_y() or to_y(x) with the same result.

The feature we specifically need right now though is to_x functions for every intrinsic type.

Metadata

Metadata

Assignees

Labels

planned featureUn-implemented but planned feature

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions