[
https://issues.apache.org/jira/browse/FUNCTOR-24?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Bruno P. Kinoshita resolved FUNCTOR-24.
---------------------------------------
Resolution: Fixed
Changed default arity of Function, Procedure and Predicate, from 0 to 1.
> Change default arity of Function, Procedure and Predicate
> ---------------------------------------------------------
>
> Key: FUNCTOR-24
> URL: https://issues.apache.org/jira/browse/FUNCTOR-24
> Project: Commons Functor
> Issue Type: Improvement
> Reporter: Bruno P. Kinoshita
> Assignee: Bruno P. Kinoshita
> Priority: Minor
>
> From http://markmail.org/message/ion6fk6hroh5zmzn
> 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.
> [1]
> http://docs.guava-libraries.googlecode.com/git/javadoc/com/google/common/base/Function.html#apply(F)
> [2]
> http://docs.guava-libraries.googlecode.com/git/javadoc/com/google/common/base/Function.html#apply(F)
--
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: http://www.atlassian.com/software/jira