Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unnamed constructor #9

Open
FatulM opened this issue Sep 12, 2021 · 1 comment
Open

Unnamed constructor #9

FatulM opened this issue Sep 12, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@FatulM
Copy link
Contributor

FatulM commented Sep 12, 2021

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.

@FatulM FatulM self-assigned this Sep 12, 2021
@FatulM FatulM added the enhancement New feature or request label Sep 12, 2021
@FatulM
Copy link
Contributor Author

FatulM commented Sep 12, 2021

@iamarnas

@FatulM FatulM removed their assignment Mar 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant