Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Why enums in language core? Unifying namespaces and enums? #82

@porky11

Description

@porky11

, Namespaces and enums seem very similar.
Enums are like namespaces that only define values of a single type.
(some-enum …) may expand to (using-namespace some-enum …)
This would minimize the core language, but using these enum-namespaces as types would be a new problem. They could work similar to Rust's enums, which can also take structs as parameters.

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