Havoc Pennington
Havoc Pennington
You’d make a copy while lowercasing each key... there isn’t a nice mapKeys kind of method so would be manual code to write. Note that the typical way to use...
Most people are requiring a certain case to be used, afaik I guess an API like `config.caseInsensitive.getInt` would be possible but I’m not sure how complex it would get. The...
Thanks for the suggestion. This is a slippery slope I'm not super comfortable with. I don't want to end up defining and maintaining a programming language ... in most cases...
I almost think a better path would be to allow dropping in extra jars to add support for YAML, Jsonnet, etc. - some discussion of that in https://github.com/lightbend/config/pull/169 - bonus,...
A Config is an object, so while you can parse json/hocon arrays, they can't be returned via APIs that return a Config. You would need an API that returns ConfigValue....
If you wanted to add a parseReader method to ConfigValueFactory that seems ok. Or something along those lines? The needed code is there, you can see in the stack trace...
Yes, I think adding just the reader parser to ConfigValueFactory might be fine; people can always create their own reader from a file or whatever, so we don't need all...
on second thought I'm not sure parseValue needs to be in ConfigParseable but I guess it does need to be public. I think ConfigParseable is only used to include objects.
Using Parseable.parseValue directly from ConfigValueFactory hopefully works. I think ConfigParseable is only public for use in ConfigIncluder implementations or something obscure like that.
in typical use there's a default for everything so resources are optional. Note that load() methods are usually loading a whole config stack and do more than load one file,...