I am reintroducing macros based on @zecakeh's idea. The idea is to validate provided str at compile-time and generate the needed formatter in place. If it fails to format the translated String, fall back to formatting the provided str (already validated at compile-time).
As for features, the formatter has to support named arguments and escaping. Adding other formatting capabilities is out of scope for this PR.
I am reintroducing macros based on @zecakeh's idea. The idea is to validate provided
str
at compile-time and generate the needed formatter in place. If it fails to format the translatedString
, fall back to formatting the providedstr
(already validated at compile-time).As for features, the formatter has to support named arguments and escaping. Adding other formatting capabilities is out of scope for this PR.
Resolves #86