Strings
Strings can be written in many ways in yaml, each with their specific advantages and disadvantages.
| type | When to use? |
|---|---|
| Unquoted strings | Short text without hashtags (with a space in front) or colons (with a space behind). |
| Single quoted strings | Short text where unquoted strings can't be used. |
| Double quoted strings | Almost never. When you need to be able to write escaped sequences like \n. |
| Folded strings | When you have a longer piece of text that you would like to write on multiple lines. |
| Literal strings | When you absolutely need to have newlines in the resulting string. |