mirror of
https://github.com/martinvonz/jj.git
synced 2024-12-27 06:27:43 +00:00
71c2006c9b
This allows us to propagate property evaluation error to a string property. For instance, "s.contains(x ++ y)" will be an error if "y" failed to evaluate, whereas bare "x ++ y" shouldn't. The other implementation ideas: a. add Template::into_string_property() to enable strict evaluation => it's tedious to implement it for each printable type b. pass (formatter, error_handler) arguments separately => works, but most implementors don't need error_handler argument c. pass strict=bool flag around build_*() functions => didn't tried, but it would be more complicated than this patch Because Template trait is now implementation detail of the templater, it should be okay to use a non-standard formatter wrapper. |
||
---|---|---|
.. | ||
examples | ||
src | ||
testing | ||
tests | ||
build.rs | ||
Cargo.toml | ||
LICENSE |