Comment by cdaringe
11 hours ago
Why is typeless a positive trait? Just due to the simplicity of the matter? What are the sharp edges?
11 hours ago
Why is typeless a positive trait? Just due to the simplicity of the matter? What are the sharp edges?
In practice, there are still types, they are just validated by your application. I didn’t want Confetti itself to make assumptions. I wanted to give you the freedom to define your own custom types and keywords, like “on” and “off”, or even tri-states like “yes”, “no”, “maybe”.
The problem with mandatory keywords, like “true” and “false”, is they box you into the English language. And which data types should be intrinsic is arbitrary, for example, TOML has data types for date and time, but JSON does not [1]. Where do you draw the line? Confetti let’s you decide.
You might enjoy reading this take on the subject [2].
[1] https://toml.io/en/v1.0.0#offset-date-time
[2] https://github.com/madmurphy/libconfini/wiki/An-INI-critique...
I don't see how predefined keywords are a bad thing. True/false is near universal
That makes a lot of sense to me. These files aren't just read by programmers either.