-
Notifications
You must be signed in to change notification settings - Fork 899
Random Refactoring #232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Random Refactoring #232
Conversation
Contains two changes: 1. Remove the firstKeyPart,secondKeyPart overload. Having a three-part overload is useful because the middle part is often dynamic, but it never is for two-part keys. 2. Make defaultValue optional, and update tests/usage accordingly.
New addition: nullable config values so it's possible to differentiate between an unset value and a set value that matches false/0. Trivial to support, perhaps even useful. Related: passing |
I like this new feature very much. Maybe should we get rid of (ie. Mark
Huh. That makes me feel a bit uneasy. Looks like a side-effect. I'd rather have no feature overlap between |
Why would we mark anything |
We try to minimize the breaking changes and provide the user with hints. |
@nulltoken Will these be removed before 1.0 is stamped? It'd be odd to have a 1.0 with Obsolete methods. |
Speaking of which, if you change an error message contents, that could be a potential breaking change for us. So do let us know. :) |
Those spots are probably an indication that we need a specific exception type.
I'd say take them out between 1.0-RC (or whatever) and 1.0. |
Indeed. We've wanted Exception types or Error codes for a while now. :) |
1.0 is not there yet :) Those @dahlbyk has already worked on a PR to take care of this. cf. #181. If some breaking changes are made once v0.10 is released, they will be marked
Hum. I'm not sure I can commit to this. I'll try to pay attention though and cc you each an every time I see such changes.
If you feel that some Exceptions are missing, please update #189 accordingly. |
@nulltoken Yeah, I wouldn't expect you to commit to that. But a heads up if you remember is nice. In the meanwhile, I'll compile an exhaustive list of error cases we need to detect and update #189. :) |
❤️ |
Cool, closing. |
Miscellaneous changes that came to mind while poking around...
params
cleans it up muchly.defaultValue
optional, which feels right. Removing the two-part overload was necessary (and makes sense, I think) because of a conflict with the three-part overload when retrieving astring
._foreach
APIs feels clumsy and repetitive, so returning a collection fromProxy
seems like a good move. The implementation's a bit weird, though (especially the conversion between delegate types) - any suggestions are welcome.