2 ms·
I used lists to build my own include concept in yaml like so: includes: - relative-include-file.yml - url: git://stuff.git file: git-in
by chme 8y ago
I used lists to build my own include concept in yaml like so:
includes:
- relative-include-file.yml
- url: git://stuff.git
file: git-included-file.yml
Not possible here.
(Of course I would need to change the string to a map as well, but that is just clunky to write all the time.)
- z0mbie42 8y agoThat's the point, we didn't ever find a good reason to use heterogeneous lists. They can all be replaced by maps which may seems more verbose but carry in fact far more information and clear
- chme 8y agoFor me a configuration file should be easy to write and read while not taking so much care about the data types. So for me you get a shoe if you reverse your argument. Type limitations aren't improving write or readability IMO and just make it harder, because you have to think about using the right type. Application specific schema checkers should take care of the checking the type.