▲ | ablob 2 days ago | |
I guess its because you can allow for custom data formats. You'll have to validate/parse the file anyways, and maybe having utc timestamps is worse than local date-time notation. Especially if the user is supposed to edit the file by hand. I know for sure I'd like "timeout: 1h6m10s" more than "timeout: 3970". So unless you want to support really specific datatypes just being typeless is better. Putting everything in double quotes to get a string, while spec-wise would be typed, is not enough when the backing data type is not going to be a string. So you might as well throw it away and let the program handle all type conversion. | ||
▲ | voodooEntity 2 days ago | parent [-] | |
So i get your point with date/time - while i may be an oldie with still preferring just having an integer seconds - but thats subjective to me. Tho the quote for string argument i can't fully agree on. While sure in for example a json i would have to quote the values if i want them "typeless as string" - tho json is far supported everywhere and i'm able to interpret the parsed string values in whatever way i want to. Adding a new dependency (confetti parsing) to spare out quotes doesn't seem to be worth the convenience to me. Tho - both probably very subjective things to me. |