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

> With NestedText any decisions about how to interpret the leaf values are passed to the end application, which is the only place where they can be made knowledgeably. The assumption is that the end application knows that Enrolled should be a Boolean and knows how to convert ‘NO’ to False.

That assumption is... not applicable to most scenarios I come across and will likely lead to issues being pushed downstream and introduction of subtle bugs and defects.



The special interpretation of NO in YAML has led to bugs and defects:

> I once disabled our product for the entire country of Norway for a day because `NO` in YAML evaluates to `false`

https://twitter.com/aarondjents/status/1307692593493553160


It'll lead to incompatible NestedText codecs/serdes :(

There should be at least some support for some standardized representations (basically JSON + ISO8601 datetime + some encoding for embedding whatever stringified serialization, eg. just how HTTP uses chunks and unique boundary tokens).




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

Search: