Project

General

Profile

Feature #15973

Updated by sawa (Tsuyoshi Sawada) about 1 year ago

When Kernel#lambda receives a Proc that is not a lambda, 
 it returns it without modification. l propose to change changing `Kernel#lambda` 
 so it always returns a lambda. 

 Calling a method called lambda and having it effective do nothing in effect is was 
 not very intuitive. 

 https://github.com/ruby/ruby/pull/2262 

 Judging from marcandre's investigation here: https://bugs.ruby-lang.org/issues/15620#note-1, https://bugs.ruby-lang.org/issues/15620#note-1 
 changing the behavior should not cause much breakage, if any. 


  


 This also happens to fix [Bug #15620]

Back