Skip to content

Unnamed constructor #9

Description

@FatulM

Add ability to define unnamed constructor.

An easy way is to provide an annotation like @UnNamed() or to reserve a method name like noNamed for this purpose.

Another way is to use constructors on manifest class to denote no named constructor.

Complexities arise when implementing match methods. But we do not need cast methods for in named constructor as it means that we do not need unnamed sub class entirely.

Special thanks to @iamarnas for his recommendations.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions