commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bruno P. Kinoshita (JIRA)" <>
Subject [jira] [Resolved] (FUNCTOR-24) Change default arity of Function, Procedure and Predicate
Date Tue, 30 Jul 2013 23:03:49 GMT


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:
>             Project: Commons Functor
>          Issue Type: Improvement
>            Reporter: Bruno P. Kinoshita
>            Assignee: Bruno P. Kinoshita
>            Priority: Minor
> From
> 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.
> 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]
> [2]

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