Actions
Misc #15978
closedDeprecate FIXNUM_MIN and FIXNUM_MAX
Misc #15978:
Deprecate FIXNUM_MIN and FIXNUM_MAX
Status:
Rejected
Assignee:
-
Actions
Added by robertomiranda (Roberto Miranda) over 6 years ago. Updated over 6 years ago.
Can you tell us why? We only expose these constants into C and there are fixnums in C. Usages of them are seen in the wild, for instance https://github.com/ged/ruby-pg/blob/master/ext/pg_text_decoder.c
I fail to see any reason to deprecate.
Yeah sure basically for consistency, now that Bignum and Fixnum classes have been deprecated in favour of Integer. I think that FIXNUM_MIN and FIXNUM_MAX should be deprecated and replaced for something that reflects that ruby has a single class for integers. I was thinking something like INTEGER_MAX and INTEGER_MIN
robertomiranda (Roberto Miranda) wrote:
Yeah sure basically for consistency, now that Bignum and Fixnum classes have been deprecated in favour of Integer. I think that FIXNUM_MIN and FIXNUM_MAX should be deprecated and replaced for something that reflects that ruby has a single class for integers. I was thinking something like INTEGER_MAX and INTEGER_MIN
I doubt such consistency is worth breaking compatibility.
And though Fixnum and Bignum is vanished from Ruby world, they are still alive in C world of Ruby implementation.