[ruby-core:102834] [Ruby master Feature#17721] Proc.new should be able to contruct a lambda
From:
bughitgithub@...
Date:
2021-03-12 18:58:14 UTC
List:
ruby-core #102834
Issue #17721 has been reported by bughit (bug hit).
----------------------------------------
Feature #17721: Proc.new should be able to contruct a lambda
https://bugs.ruby-lang.org/issues/17721
* Author: bughit (bug hit)
* Status: Open
* Priority: Normal
----------------------------------------
since procs and lambdas are of the same type, as long as Proc::new exists, it should be able to create either.
```ruby
class Proc
def augment
self.class.new lambda? do
call
end
end
end
```
--
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>