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.

Source: Wikipedia — Predicate dispatch (CC BY-SA 4.0)

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.

This neuron ends here.

Source: Wikipedia "Predicate dispatch" · CC BY-SA 4.0

Share this article: X · Bluesky
Privacy Policy