3 ms·
Three dots indicates the end of a block, not a document. Look at Example 2.8 in your link. If the user sends; --- time: 20:03:20 player: Sammy Sos
by onion2k 8y ago
Three dots indicates the end of a block, not a document. Look at Example 2.8 in your link.
If the user sends;
---
time: 20:03:20
player: Sammy Sosa
action: strike (miss)
...
.. you can't know if they actually meant to send ..
---
time: 20:03:20
player: Sammy Sosa
action: strike (miss)
...
---
time: 20:03:47
player: Sammy Sosa
action: grand slam
...
Also, in my experience, which is mostly limited to Ansible config because I prefer JSON, I've never seen three dots in the wild. I don't think devops people like them.
- calibas 8y agoThey mark the end of a YML "document", but not the end of a YML "stream", which can contain multiple documents. It's the terminology that's causing confusion.
- ams6110 8y agoThat's interesting, I have always seen the three dots as the first line in a YAML file, my exposure to YAML being almost exclusively Ansible configurations.