Migrating to functional programming #657
GalacticHypernova
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is a feature that will likely require to be carefully thought out (and probably be a breaking change). Moving to functional programming (meaning no usage of OOP like classes) will allow the library to be tree shakeable, and thus make the bundle even smaller, ultimately providing a cleaner and more performant experience.
OOP inherently prevents code from being tree-shaken due to its nature of preserving base classes' members, and refactoring it to functional programing will contribute a lot to the subsequent performance of projects that use this library.
I'd be happy to aid in the migration, and would love to hear your opinion on this!
Beta Was this translation helpful? Give feedback.
All reactions