Path: redb-route/redb.Route/Abstractions/IPredicateExpression.cs Snapshot: redb-route, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages. License: Apache-2.0. Repository: https://github.com/redbase-app/redb-route Page: https://redbase.app/src/dev-2026-12-06/redb-route/redb.Route/Abstractions/IPredicateExpression.cs ---- namespace redb.Route.Abstractions; /// /// An expression that defines its own reading in a condition, rather than being evaluated to a /// value and read for truthiness. /// /// /// /// A query language brings a notion of a match that evaluating-then-reading cannot reconstruct. /// XPath("/order/discount") in a condition asks whether the path matched; flattening the /// node-set to a value first answers with the node's content instead, so /// <discount>0</discount> would read as "no match". Implementing this interface /// keeps that decision where the language's semantics live. /// /// /// It deliberately does not extend . Condition-taking verbs are /// overloaded on and both, so an expression that /// implemented the latter would make Filter(XPath("/a/b")) an ambiguous call — the language /// would gain a semantics and lose the spelling that needed it. /// /// public interface IPredicateExpression : IExpression { /// /// Evaluates the expression in a condition position. /// /// The exchange to test. /// true when the condition holds for the exchange. bool Matches(IExchange exchange); }