Uploaded image for project: 'Commons Sandbox'
  1. Commons Sandbox
  2. SANDBOX-224

[functor] Parent interface for all functors

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • None
    • Functor
    • None
    • Operating System: All
      Platform: All

    • 33525

    Description

      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

      Attachments

        Activity

          People

            Unassigned Unassigned
            jorne@eubot.com Brian D. Eubanks
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: