3 ms·
Not quite. Interpolation is where the value is placed directly in the string rather than appended as parameters. Eg “I am $age years old”. This does result i
by hnlmorg 1y ago
Not quite.
Interpolation is where the value is placed directly in the string rather than appended as parameters.
Eg “I am $age years old”.
This does result in the side effect that interpolation is typically a language feature rather than a library feature. But there’s nothing from preventing someone writing an interpolation library, albeit you’d need a language with decent reflection or a one that’s dynamic from the outset.