[#83773] [Ruby trunk Bug#14108] Seg Fault with MinGW on svn 60769 — usa@...
Issue #14108 has been updated by usa (Usaku NAKAMURA).
9 messages
2017/11/15
[#83774] Re: [Ruby trunk Bug#14108] Seg Fault with MinGW on svn 60769
— Eric Wong <normalperson@...>
2017/11/15
usa@garbagecollect.jp wrote:
[#83775] Re: [Ruby trunk Bug#14108] Seg Fault with MinGW on svn 60769
— "U.NAKAMURA" <usa@...>
2017/11/15
Hi, Eric
[#83779] Re: [Ruby trunk Bug#14108] Seg Fault with MinGW on svn 60769
— Eric Wong <normalperson@...>
2017/11/15
"U.NAKAMURA" <usa@garbagecollect.jp> wrote:
[#83781] Re: [Ruby trunk Bug#14108] Seg Fault with MinGW on svn 60769
— "U.NAKAMURA" <usa@...>
2017/11/15
Hi, Eric,
[#83782] Re: [Ruby trunk Bug#14108] Seg Fault with MinGW on svn 60769
— Eric Wong <normalperson@...>
2017/11/15
"U.NAKAMURA" <usa@garbagecollect.jp> wrote:
[ruby-core:83872] [Ruby trunk Bug#14128] Introduce Hash#delete default value
From:
shevegen@...
Date:
2017-11-23 20:58:34 UTC
List:
ruby-core #83872
Issue #14128 has been updated by shevegen (Robert A. Heiler).
I think this should be filed under features rather than bugs.
Here is a link to the documentation if anyone else wants to have
a look:
https://ruby-doc.org/core/Hash.html#method-i-delete
I am neither pro or con on the suggestion so I will not
comment on it - I only wanted to provide a quick link to
the docu so that others can find the most recent docu +
examples more easily.
----------------------------------------
Bug #14128: Introduce Hash#delete default value
https://bugs.ruby-lang.org/issues/14128#change-67908
* Author: gshutler (Garry Shutler)
* Status: Open
* Priority: Normal
* Assignee:
* Target version:
* ruby -v:
* Backport: 2.3: UNKNOWN, 2.4: UNKNOWN
----------------------------------------
Mirror `Hash#fetch(key [, default]) → obj` with `Hash#delete(key [, default]) → obj`.
Allows for more concise extraction of a value from a hash with a default.
~~~ ruby
# Currently
a = hash.delete(:a) { 10 }
# Becomes
a = hash.delete(:a, 10)
~~~
--
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>