Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Question: if whitespace isn't significant, how does it determine ambiguity? Like, if I have a Person that has a Dog, and both have a Name attribute. If I then add a Name after my dog definition, how does it know if it's the name of the dog or the person?


That took some design work! In the end, KSON settled on something called the "end dot", which denotes the end of an object (more details in the docs, at https://kson.org/docs/syntax/#the-end-dot).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: