Strings and things
Paul Sandoz
paul.sandoz at oracle.com
Fri Sep 17 17:43:39 UTC 2021
That can be composed as a library feature (not necessarily provided in the platform) e.g. an abstract implementation of TemplatingPolicy called say FormatterTemplatingPolicy that extracts the formatting tails, perhaps as Strings or as something richer.
Paul.
> On Sep 17, 2021, at 10:17 AM, Brian Goetz <brian.goetz at oracle.com> wrote:
>
>
>> 1) I am wondering whether % formatting directives are common enough that you want to take on the work of collecting them and passing them to the processor. You have the power to use \% or \{...%...}, and then the implementor doesn't have to worry about things like %%.
>
> We briefly considered this, but it seems too opinionated for the language. Yes, many formatters will happily use %stuff\{filler}, but there are also domains where this is not such a good answer, and this seems a poor thing for the language to be opinionated about.
More information about the amber-dev
mailing list