3 ms·
Are StringTemplates constant? i.e. for this method: StringTemplate foo() { return RAW.""; } is foo() == foo()? This is a very useful feature of JS tagged t
by rictic 3y ago
Are StringTemplates constant? i.e. for this method:
StringTemplate foo() {
return RAW."";
}
is foo() == foo()?
This is a very useful feature of JS tagged template functions, as it lets a template processor do expensive one-time processing of a StringTemplate and cache the result, then use that to quickly apply that to particular values. I don't see an answer here: https://cr.openjdk.org/~jlaskey/templates/docs/api/java.base/java/lang/StringTemplate.html https://cr.openjdk.org/~jlaskey/templates/docs/api/java.base...