Ron M
2/21/2006 1:34:00 AM
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.
=============with 1.8.4=============
=> true
irb(main):003:0> puts [1,1<<200].to_yaml
- 1
- !ruby/object:Bignum 1606938044258990275541962092341162602522202993782792835301376
=> nil
=============with 1.8.2=============
irb(main):014:0> puts [1, 1<<200].to_yaml
---
- 1
- 1606938044258990275541962092341162602522202993782792835301376
=> nil