Skip to main content

pattern_var_code

Function pattern_var_code 

Source
pub fn pattern_var_code(name: &str) -> Arc<QTerm> ⓘ
Expand description

Code for a pattern metavariable splice: mvar("name").

This and pattern_let_code used to live in crate::qmatch, beside the runtime they call into. But mvar(..) and qmatch_n(&p, &v) are Rust source, so emitting them from the language-agnostic core is what made pattern matching Rust-only while reading as though it were not. A second host would add its own pair next to its own build_*_code.