Strings and things
Stephen Colebourne
scolebourne at joda.org
Fri Sep 17 12:28:19 UTC 2021
On Thu, 16 Sept 2021 at 19:10, Brian Goetz <brian.goetz at oracle.com> wrote:
> > I believe however that there is a missing element - pre-processing at
> > compile-time.
>
> The other interpretation is that you are asking for a way to let the
> library plug into the parser (the lexer, actually!) so that you're not
> stuck with the language's notion of "string with holes."
I'm open to any approach that can produce errors/exceptions before
runtime when the template is invalid (preferably at compile-time). The
discussion in the doc about safety feels a bit incomplete without
early validation. Anyway, thanks for the reply.
Stephen
More information about the amber-dev
mailing list