Actions
Feature #17825
openUniformize Float::INFINITY and Date::infinity.new
Status:
Open
Assignee:
-
Target version:
-
Description
With Float
you can do
Float::INFINITY # Infinity
and with Date
you can do
Date::Infinity.new # #<Date::Infinity:0x00007f8d46a59ee0 @d=1>
but not
Date::INFINITY # uninitialized constant Date::INFINITY
Background¶
Date::Infinity.new
and Float::INFINITY
have both the same ancestors and have same using purpose
So it feel odd no be able to call them the same way
Proposal¶
Just make Date::INFINITY
a working thing
And maybe mark Date::Infinity.new
as deprecated ¯_(ツ)_/¯
Thanks for reading
Actions
Like0
Like0