Skip to content

Unit #103

@phanrahan

Description

@phanrahan

Sum and Product types usually have a type Void/Zero and Unit.

Void stands for the type with no values. Unit stands for the type with one value.

In peak, Unit would be useful for specifying instructions without any arguments. For example,

class NOP(Unit):
    pass

Or, is there another way to do this?

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