From: lucascfat@... Date: 2021-04-25T11:05:32+00:00 Subject: [ruby-core:103587] [Ruby master Feature#17825] Uniformize Float::INFINITY and Date::infinity.new Issue #17825 has been reported by Aoernis (lucas billaudot). ---------------------------------------- Feature #17825: Uniformize Float::INFINITY and Date::infinity.new https://bugs.ruby-lang.org/issues/17825 * Author: Aoernis (lucas billaudot) * Status: Open * Priority: Normal ---------------------------------------- **Description** With `Float` you can do ``` ruby Float::INFINITY # Infinity ``` and with `Date` you can do ``` ruby Date::Infinity.new # # ``` but not ``` ruby 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 -- https://bugs.ruby-lang.org/ Unsubscribe: