Skip to content

optional-type #60

Closed
Closed
@TheJJ

Description

@TheJJ

It should be possible to declare types as optional(typename) which then allows values not to be set.

Currently, the specification states that whenever a nyan-object is used as value in another nyan-object, all the members must have an assigned value.

With this feature, members of the optional(othertype) type have a None value by default. They can be assigned None or a value of type othertype.

None becomes a keyword.

Metadata

Metadata

Assignees

No one assigned

    Labels

    c++involves C++ codeproposalpending discussion about something to dospecificationinvolves the nyan language specification

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions