[#99115] [Ruby master Bug#17023] How to prevent String memory to be relocated in ruby-ffi — larskanis@...
Issue #17023 has been reported by larskanis (Lars Kanis).
22 messages
2020/07/10
[#99375] [Ruby master Feature#17055] Allow suppressing uninitialized instance variable and method redefined verbose mode warnings — merch-redmine@...
Issue #17055 has been reported by jeremyevans0 (Jeremy Evans).
29 messages
2020/07/28
[#101207] [Ruby master Feature#17055] Allow suppressing uninitialized instance variable and method redefined verbose mode warnings
— merch-redmine@...
2020/12/02
Issue #17055 has been updated by jeremyevans0 (Jeremy Evans).
[#101231] Re: [Ruby master Feature#17055] Allow suppressing uninitialized instance variable and method redefined verbose mode warnings
— Austin Ziegler <halostatue@...>
2020/12/03
What does this mean?
[ruby-core:99122] [Ruby master Feature#17022] Addition of method Kernel#Date
From:
nobu@...
Date:
2020-07-11 06:06:55 UTC
List:
ruby-core #99122
Issue #17022 has been updated by nobu (Nobuyoshi Nakada).
Status changed from Open to Third Party's Issue
Please file at https://github.com/ruby/date.
IMHO, as `Date.parse` is too heuristic & magical for humans, I don't think we should encourage using it.
----------------------------------------
Feature #17022: Addition of method Kernel#Date
https://bugs.ruby-lang.org/issues/17022#change-86498
* Author: americodls (Americo Duarte)
* Status: Third Party's Issue
* Priority: Normal
----------------------------------------
What if we have a method `Kernel#Date` that delegates to `Date.parse`?
Dates could be written in a more natural way, right?
```ruby
Date("2020-01-13") - Date("2019-01-13")
```
Another capitalized methods are added to the Kernel module to facilitate construction of another basic types:
``` ruby
Kernel.methods.grep(/^[A-Z].*/)
#=> [:Rational, :Complex, :URI, :Integer, :Float, :String, :Array, :Hash, :Pathname]
```
`BigDecimal` is added too when is required:
```ruby
require 'bigdecimal'
Kernel.methods.grep(/^[A-Z].*/)
#=> [:Rational, :Complex, :BigDecimal, :URI, :Integer, :Float, :String, :Array, :Hash, :Pathname]
```
So the proposal is do the same was done with BigDecimal, when we do `require 'date'` a method `Kernel#Date` should be added as well.
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>