Skip to content

Unknown, None, etc are not reserved #178

@apblack

Description

@apblack

According to the spec, Unknown is not a reserved word. I think that it should be.

Unknown is an essential part of Grace's type system. Doesn't that make it an essential apart of the language? We can't define Unknown in Grace, so I don't see how it can be an identifier introduced in the prelude.

If it's not reserved, then it can be redefined. If it can be redefined, how does one reference the "real" Unknown?

The exact type-matching rules that a dialect applies to Unknown may be up to it, but the fact that omitted type arguments are replaced by Unknown tells me, I think, that Unknown has to be defined!

We need a decision on this to resolve issue gracelang/minigrace#290.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions