[#74190] [Ruby trunk Feature#12134] Comparison between `true` and `false` — duerst@...
Issue #12134 has been updated by Martin D端rst.
3 messages
2016/03/07
[#74269] Type systems for Ruby — Rob Blanco <ml@...>
Dear ruby-core,
5 messages
2016/03/10
[#74395] [Ruby trunk Feature#12142] Hash tables with open addressing — shyouhei@...
Issue #12142 has been updated by Shyouhei Urabe.
3 messages
2016/03/17
[ruby-core:74248] [Ruby trunk Bug#12054] Remove block from Logger.add as it's not needed
From:
nagachika00@...
Date:
2016-03-09 15:25:56 UTC
List:
ruby-core #74248
Issue #12054 has been updated by Tomoyuki Chikanaga. Backport changed from 2.1: DONE, 2.2: REQUIRED, 2.3: REQUIRED to 2.1: DONE, 2.2: DONE, 2.3: REQUIRED r53790 and r53844 were backported into `ruby_2_2` branch at r54072. ---------------------------------------- Bug #12054: Remove block from Logger.add as it's not needed https://bugs.ruby-lang.org/issues/12054#change-57382 * Author: Daniel Lobato Garcia * Status: Closed * Priority: Normal * Assignee: Daniel Lobato Garcia * ruby -v: * Backport: 2.1: DONE, 2.2: DONE, 2.3: REQUIRED ---------------------------------------- Logger add (lib/logger.rb) takes as arguments severity, message, progname and &block The method runs the block through yield. In this case, we can just omit the argument and we'd be saving the instantiation of a new proc object (see http://mudge.name/2011/01/26/passing-blocks-in-ruby-without-block.html). -- 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>