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

Factory const constructor(s) #128

Open
williamhjcho opened this issue Aug 16, 2023 · 1 comment
Open

Factory const constructor(s) #128

williamhjcho opened this issue Aug 16, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@williamhjcho
Copy link

Hello 👋

Are Either's (and other types) factory constructors planned to be const? (e.g. Either.left, Either.right)
Similar to the current Option.of and Option.none constructors.

@SandroMaglione
Copy link
Owner

Hi @williamhjcho

Yes, it is. This would require some investigation regarding possible limitations with const factory.

@SandroMaglione SandroMaglione added the enhancement New feature or request label Aug 25, 2023
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

2 participants