Skip to content

Consider whether algebraic data types should use sealed abstract classes #10

Open
@noelwelsh

Description

@noelwelsh

There are several benefits to using a sealed abstract class as the base of an algebraic data type:

  • it is faster
  • Java interop is cleaner
  • it is semantically clearer (an abstract class can't be mixed into multiple classes)

The disadvantage is we have to introduce another concept (abstract classes).

This will require quite a bit of rewriting.

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