commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bruno P. Kinoshita (JIRA)" <>
Subject [jira] [Created] (FUNCTOR-24) Change default arity of Function, Procedure and Predicate
Date Tue, 12 Feb 2013 20:55:13 GMT
Bruno P. Kinoshita created FUNCTOR-24:

             Summary: Change default arity of Function, Procedure and Predicate
                 Key: FUNCTOR-24
             Project: Commons Functor
          Issue Type: Improvement
            Reporter: Bruno P. Kinoshita
            Assignee: Bruno P. Kinoshita
            Priority: Minor


Java 8 (project lambda) [1] and Google Guava [2] have a default arity of 1 for these interfaces
(i.e. Function is a unary function). But in [functor] the default arity is 0 (i.e. nullary).

It would be a good idea for [functor] to have a similar behaviour to the other API's, so users
and developers can use the interfaces with less hassle. 

Other functional programming languages let the user specify the arity when declaring the function
(like in Haskell), but in [functor] we have special interfaces per arity.


This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message