3 ms·
> especially around arrays of structs vs regular arrays or arrays of structs which contain one key-value pair each, and especially the struggles around multi-li
by jhanschoo 6y ago
> especially around arrays of structs vs regular arrays or arrays of structs which contain one key-value pair each, and especially the struggles around multi-line strings or other kinds of entries in YAML.
Can you give examples? I don't see how they pose a problem.
- t-writescode 6y agoTo create a multi-line string in YAML, you can prefix a preceding line with: > | >+ >- |+ |- >+# and so on. How do you know which to use and what does what?! Especially when you see other people doing it in their code and you don't know why. I think they could have done it more cleanly by being more verbose. Python's """ syntax or even Ruby's <<EOL EOL format are cleaner.