kdl-org / kdl

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

[v2]: Case sensitivity for keywords? #380

Open zkat opened 5 months ago

zkat commented 5 months ago

Can/should we make keywords case insensitive? That is, #true, #null, #nan, etc.

tabatkins commented 4 months ago

I think I'm 100% neutral on this. Like, CSS is case-insensitive with its keywords, but also anyone who writes COLOR: Red; deserves jail.

But I also suspect I'll naturally try to spell it #NaN, and sometimes people like #TRUE to make them stand out more, so eh.

larsgw commented 4 months ago

I feel like these alternatives are mainly just things that people are going to want to write linter rules against. But I had the same feeling about quote-less strings, and maybe alternatives are fine.

tabatkins commented 4 months ago

Similar to the "I'll probably type #NaN" thing, depending on whether I've been most recently writing Python or JS my fingers naturally spell it True or true.

So I guess I'm weakly for making them insensitive (but maybe with a recommendation about using lowercase as the canonical serialization?)