Project

General

Profile

ActionsLike0

Feature #17721

closed

Proc.new should be able to contruct a lambda

Added by bughit (bug hit) about 4 years ago. Updated over 3 years ago.

Status:
Feedback
Assignee:
-
Target version:
-
[ruby-core:102834]

Description

since procs and lambdas are of the same type, as long as Proc::new exists, it should be able to create either.

class Proc
  def augment
    self.class.new lambda? do 
      call
    end
  end
end

Updated by ko1 (Koichi Sasada) over 3 years ago

  • Status changed from Open to Rejected

Updated by naruse (Yui NARUSE) over 3 years ago

  • Status changed from Rejected to Feedback
ActionsLike0

Also available in: Atom PDF