Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
TylerE
on May 22, 2023
|
parent
|
context
|
favorite
| on:
TOML: Tom's Obvious Minimal Language
The trick is distinguishing empty string vs no value vs key not being present.
Guthur
on May 22, 2023
[–]
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.
TylerE
on May 22, 2023
|
parent
[–]
It’s that “or” that bites you if you aren’t real sure of the semantics in play.
Guthur
on May 22, 2023
|
root
|
parent
[–]
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: