|
|
|
|
|
by nine_k
749 days ago
|
|
Go find a place where the struct value is clearly defined. It may seem that any definition is final, but none is. Since the last definition of a struct field overwrites a previous one, the order in which e.g. files are interpreted matters. It's like writing a config by using Python dicts, with the added complication that creation of a new one and updating of an existing one are indistinguishable. This may be okay in practice, given some discipline. |
|
You can have wider types being overridden by more closed types. e.g. string => "this literal". But you cant have two disagreeing values.
I use this to create kubernetes manifests at work, at a reasonably large scale. The inability to join multiple files without fear of collision is specifically one of the best features.