[ 
https://issues.apache.org/jira/browse/SANDBOX-224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12588131#action_12588131
 ] 

James Carman commented on SANDBOX-224:
--------------------------------------

I don't have a problem with this change, but I am curious to see an actual use 
case where this would be helpful.

> [functor] Parent interface for all functors
> -------------------------------------------
>
>                 Key: SANDBOX-224
>                 URL: https://issues.apache.org/jira/browse/SANDBOX-224
>             Project: Commons Sandbox
>          Issue Type: Improvement
>          Components: Functor
>         Environment: Operating System: All
> Platform: All
>            Reporter: Brian D. Eubanks
>            Priority: Minor
>
> Functor Enhancement: Parent interface for all functors
> I would like to see an empty Functor interface as a marker for all functors.
> This would be useful for storing functors in typed Maps, providing functor
> metadata lookup (e.g. parameters and return types), and passing functors
> generically as method parameters. It's an easy enhancement to make, and
> potentially very powerful.
> public interface Functor {}
> public interface Predicate extends Functor 
> public interface UnaryPredicate extends Functor 
> public interface BinaryPredicate extends Functor 
> public interface Function extends Functor 
> public interface UnaryFunction extends Functor 
> public interface BinaryFunction extends Functor 
> public interface Procedure extends Functor
> public interface UnaryProcedure extends Functor
> public interface BinaryProcedure extends Functor

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to