3 ms·
> Are you sure that every YAML parser will treat foo:bar as a string, or 0x42 as the integer 42, etc.? Definitely not. I'd expect 0x42 to be 66. (Not kidding,
by jrochkind1 8y ago
> Are you sure that every YAML parser will treat foo:bar as a string, or 0x42 as the integer 42, etc.?
Definitely not. I'd expect 0x42 to be 66. (Not kidding, if 0x42 means hex notation!).
Point taken.
- Gibbon1 8y agoMy friends who are smarter than me have these criticisms. XML -> doesn't record what programs think of as 'data'. So a program needs to convert it's data representation to XML and back again. Usually there is no formal spec. This is the exact same issue you have with databases. But at least a database has a formal representation and data types. Part of SOAP is Microsoft trying to bolt schema's onto XML. SOAP seems to generate a lot of unhappy programmer noises. But my ex roommate said, 'well when you get it working it works' JSON and YAML do but they don't have schema's to parse against. So programs need to do their own validation.
- Carpetsmoker 8y agoYeah, that was an error >_< I fixed it. Thanks!