2 ms·
I was dealing with XML via a REST interface the other day, and was amused by the fact that nulls are represented as an attribute named "null" with a value "true
by perl4ever 7y ago
I was dealing with XML via a REST interface the other day, and was amused by the fact that nulls are represented as an attribute named "null" with a value "true", but if not null, the attribute doesn't exist, which means it becomes an actual Null, which means, of course, False. But not "false".
And by "amused" I mean it made my head hurt when trying to figure out a clear and self-documenting way to write a few lines to decode it.