Open williamhjcho opened 1 year ago
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.
Either
Either.left
Either.right
Option.of
Option.none
Hi @williamhjcho
Yes, it is. This would require some investigation regarding possible limitations with const factory.
const factory
Hello 👋
Are
Either
's (and other types) factory constructors planned to be const? (e.g.Either.left
,Either.right
) Similar to the currentOption.of
andOption.none
constructors.