Hacker News new | past | comments | ask | show | jobs | submit login

The trick is distinguishing empty string vs no value vs key not being present.



Key not being present is no value, key present has value, empty string or otherwise, seems simple enough.

You can add advanced semantics on load, the file does nothing by itself after all.


It’s that “or” that bites you if you aren’t real sure of the semantics in play.


There is no 'or' for a given file, it is declaratively there or it is not. The 'or' semantics are part of your language environment not the toml file.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: