encyclopegia.org

Predicate dispatch

In computer programming, predicate dispatch is a generalisation of multiple dispatch ("multimethods") that allows the method to call to be selected at runtime based on arbitrary decidable logical predicates and/or pattern matching attached to a method declaration. Raku supports predicate dispatch using "where" clauses that can execute arbitrary code against any function or method parameter. Julia has a package for it with PatternDispatch.jl but otherwise natively supports multiple dispatch. Experimental implementations have been created for Common LISP, and for Java (JPred ). It allows open extension of previously declared methods at a fine-grained level, but multiple extensions with identical or overlapping predicates created by different developers may interfere with each other in unanticipated ways. In this respect it is similar to aspect-oriented programming.

In computer programming, predicate dispatch is a generalisation of multiple dispatch ("multimethods") that allows the method to call to be selected at runtime based on arbitrary decidable logical predicates and/or pattern matching attached to a method declaration. Raku supports predicate dispatch using "where" clauses that can execute arbitrary code against any function or method parameter. Julia has a package for it with PatternDispatch.jl but otherwise natively supports multiple dispatch. Experimental implementations have been created for Common LISP, and for Java (JPred ). It allows open extension of previously declared methods at a fine-grained level, but multiple extensions with identical or overlapping predicates created by different developers may interfere with each other in unanticipated ways. In this respect it is similar to aspect-oriented programming. C2 wiki: Predicate dispatching

References

No reference rows published for this article.

Cite this article

MLA

"Predicate dispatch." encyclopegia.org, 2026, https://encyclopegia.org/wiki/predicate-dispatch. Accessed 24 November 2026.

Chicago

"Predicate dispatch." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/predicate-dispatch.

APA

encyclopegia.org. (2026). Predicate dispatch. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/predicate-dispatch

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Tiny Tiny RSS

enwiki · references available

Richard Roe (clockmaker)

enwiki · references available

Clappers (song)

enwiki · references available

Nordenskiöldkysten

enwiki · references available

Low, Utah

enwiki · references available

Janne Suokonautio

enwiki · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1358577417 · 0.5 · snapshot enwiki-001358577417

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.