Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Big enum?


If the library wasn't open for extension, an enum could work. With the currently model, users can write their own plugins, bring their own storage provider, or even write an email consumer that reacts to events from the EventBus - all without needing to upstream their changes to torii and torii-core.


What about providing a plugin registration macro that generates an enum that can be provided to the library.


So it’s not open for extension?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: