kdl-org / kdl

the kdl document language specifications
https://kdl.dev
Other
1.09k stars 61 forks source link

Forbid zero-length identifiers. #298

Closed Patitotective closed 1 year ago

Patitotective commented 1 year ago

Discussions

https://github.com/kdl-org/kdl/pull/286#issuecomment-1250559170 and https://github.com/kdl-org/kdl/discussions/177.

Changes

Notes

zkat commented 1 year ago

I'm strongly -1 with this change. Identifiers can be arbitrary keys in key/value pairs and this would present a potentially serious interop problem. For example, I'll note that JSON keys can be empty strings as well. This feels arbitrary and conflates the concept of None/null with "valid but empty value". I don't see a reason to do this.