Project

General

Profile

Actions

Feature #10175

open

There’s no reason to prefer Proc.new over Kernel#proc anymore

Added by gogotanaka (Kazuki Tanaka) over 10 years ago. Updated about 10 years ago.

Status:
Open
Assignee:
-
Target version:
-
[ruby-core:64591]

Description

We could’t use Kernel#proc if someone wanted to write code in the same way on both Ruby 1.8 and Ruby 1.9.
Now that maintenance of Ruby versions 1.8 end, there’s no reason to prefer Proc.new over Kernel#proc anymore.

https://www.ruby-lang.org/en/news/2014/07/01/eol-for-1-8-7-and-1-9-2/

I have fixed some coding style on the way


Files

UseKernel#proc.PATCH (9.08 KB) UseKernel#proc.PATCH gogotanaka (Kazuki Tanaka), 08/27/2014 07:51 PM

Updated by gogotanaka (Kazuki Tanaka) about 10 years ago

Hi, I just wanna check there is any problems? if so please feel free to ask me.
I'm totally OK you think my propose is improper and make it rejected.

note: I'm not in a hurry. take your time :)

Actions

Also available in: Atom PDF

Like0
Like0