Havoc Pennington

Results 176 comments of Havoc Pennington
trafficstars

So unpacking this tortured text, > if you set a key to an object, a non-object, then an object, first the non-object falls back to the object (non-object always wins),...

In ConfigNumber.newNumber it chooses an integer representation if it would be lossless. In general if you depend on the parsed type (vs the gettable type with getDoubleList) some uses of...

Does this get at it? https://github.com/lightbend/config/blob/master/HOCON.md#include-semantics-missing-files-and-required-files

I guess what you may be saying is that ConfigFactory.load still succeeds even if an individual file fails due to a `required()` ? I can imagine that we accidentally made...

I think what's happening is that the parseFile or parseResource for the individual files that ConfigFactory.load loads will throw an exception due to the `required()`, but the overall ConfigFactory.load effectively...

there is a -Dconfig.trace=load (maybe I got that slightly wrong, it’s in the readme tho)

I generally agree with you here and I think it was an oversight / unintentional interaction when we added required. It needs some research and care to add test cases,...

So where required should be working right now is with the `parse*` family of functions (vs. the `load*`)

I don't think there's a way currently. If empty string were always treated as unset there would be no way to set things to empty string so it doesn't seem...