Skip to content

Replace NullType with NullableType(BottomType()) #284

Description

@MeAmAnUsername

Summary
Replace the type NullType() with NullableType(BottomType())

Todo

  • Add tests?
  • Implement
  • Update documentation

Reason
It is inelegant that a type can be nullable without being NullableType(_). This also makes it explicitly clear how the type hierarchy works.

Implementation
NullType() with NullableType(BottomType()) should just work.

Related issues

Background information
This is also how it is done in Kotlin, as is described in this blog post

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: DSLSomething that concerns the design of PIE DSLComponent: code baseThe code quality of the project (does not affect functionality)Priority: lowStatus: specifiedEnhancement that is ready to implementType: enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions