Is there any reason why 1.8.4’s YAML exposes what seems to
be an implementation detail of how many bits it takes to
overflow into a Bignum.
It seems for interoperability with other languages that
use yaml, it’d be very nice to hide this detail and
simply show the (possibly large) integer value, as
it appears 1.8.2 did.
Is there any reason why 1.8.4’s YAML exposes what seems to
be an implementation detail of how many bits it takes to
overflow into a Bignum.
It seems for interoperability with other languages that
use yaml, it’d be very nice to hide this detail and
simply show the (possibly large) integer value, as
it appears 1.8.2 did.
Seems to be platform-specific:
$ uname -a
Darwin kaa.coop.robotcoop.com 8.5.0 Darwin Kernel Version 8.5.0: Sun
Jan 22 10:38:46 PST 2006; root:xnu-792.6.61.obj~1/RELEASE_PPC Power
Macintosh powerpc
$ ruby -v -ryaml -e ‘puts [1, 1<<200].to_yaml’
ruby 1.8.4 (2005-12-24) [powerpc-darwin8.4.0]