[Xml-compile] $_[0] + 0.0 for sloppy floats
Mark Overmeer
mark at overmeer.net
Tue Dec 16 15:58:48 GMT 2014
* Patrick Powell (papowell at astart.com) [141216 15:34]:
> Ummm... and look at JSON and 'true' and 'false'.
Correct. In Apache::Solr, I ended up building tables of fields and which
are boolean, to automatically translate Perl's concept of booleans into
Solr's URI parameters.
IMO Perl libraries should attempt to hide the typedness of interfaces...
JSON itself is on a too basic level to do it itself. But interfaces
which transport their data via JSON could (should?) try to automate the
required conversions... often quite some work.
--
Regards,
MarkOv
------------------------------------------------------------------------
Mark Overmeer MSc MARKOV Solutions
Mark at Overmeer.net solutions at overmeer.net
http://Mark.Overmeer.net http://solutions.overmeer.net
More information about the Xml-compile
mailing list