[#78633] ruby/spec needs help from CRuby committers — Benoit Daloze <eregontp@...>

Currently, ruby/spec is maintained mostly by individuals and enjoys the

13 messages 2016/12/13

[ruby-core:78799] [Ruby trunk Feature#12854] Proc#curry should return an instance of the class, not Proc

From: shyouhei@...
Date: 2016-12-22 01:17:39 UTC
List: ruby-core #78799
Issue #12854 has been updated by Shyouhei Urabe.


Yusuke Endoh wrote:
> I proposed and first implemented `Proc#curry`.  I have no idea how this change may skew the conceptual nature of the currying operation.  Do you have any particular concern?

No particular problem was shown at the meeting, as far as I remember.  Other attendees might have such thing though.

----------------------------------------
Feature #12854: Proc#curry should return an instance of the class, not Proc
https://bugs.ruby-lang.org/issues/12854#change-62205

* Author: Ryan Davis
* Status: Feedback
* Priority: Normal
* Assignee: 
* Target version: 
----------------------------------------
~~~ ruby
class ChainedProc < Proc
end

ChainedProc.new { |x, y, z| 42 }.curry.class # => Proc
~~~




-- 
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>

In This Thread

Prev Next