-
Notifications
You must be signed in to change notification settings - Fork 24
Description
I wanted to discuss two design decisions:
Default Value
I’m not happy with the nullable boolean that is returned from the
Is().Enabled
method. This leaves a lot of complexity to the client. I would prefer a way to add a default value that is returned instead of null. Something like
Is().Enabled.WithDefault(true)
This would leave the old way like it is but also enable default values.
Add “magic string” alternative to class
I normally do not add any logic to my feature class. The class for me is only an overhead that makes me deal with dependencies. If I use the same feature in UI and Data logic this can be a problem. It also is code I have to maintain. I really would like a string alternative:
Feature.ByName("ma-magic-string").Is.Enabled
I’m interested what you think about it.
Maybe I just use the framework other than you do.