SandroMaglione / fpdart

Functional programming in Dart and Flutter. All the main functional programming types and patterns fully documented, tested, and with examples.
https://pub.dev/packages/fpdart
MIT License
528 stars 44 forks source link

Factory const constructor(s) #128

Open williamhjcho opened 1 year ago

williamhjcho commented 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.

SandroMaglione commented 1 year ago

Hi @williamhjcho

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