in reply to Re^2: Does the experimental builtin::stringify() do anything that scalar() doesn't ?
in thread Does the experimental builtin::stringify() do anything that scalar() doesn't ?
Why is that useful ?
Data serialization. A string may serialize differently than an integer:
{ "foo":1, "bar":"2", }
In the case of that little JSON blurb, a well behaved JSON emitter would take {foo => 1, bar => "2"} and emit JSON with two key/value pairs, one of which has an integer value, and the other of which has a string that contains the character '2'
Why that matters is the subject of many hard to find little bugs
Dave
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Does the experimental builtin::stringify() do anything that scalar() doesn't ?
by NERDVANA (Priest) on Apr 12, 2024 at 07:34 UTC | |
by choroba (Cardinal) on Apr 12, 2024 at 07:54 UTC |