Presentation at JCrete.org

Steve Barham steve at ethx.net
Mon Jul 24 15:19:07 UTC 2023


> On 24 Jul 2023, at 14:41, Brian Goetz <brian.goetz at oracle.com> wrote:
> 
> I think you've laid it out here: you acknowledge that having LOG."stuff" *do* the logging is a bad idea, when there's an entirely sensible alternative that gets you the desired safety and deferral of expensive formatting:

One observation I’d make here is that the JEP presents an example in the form of a QueryBuilder template processor to produce a PreparedStatement. Per the Javadoc of Connection, this may well result in a side-effect by sending the query to the server for precompilation / validation. 

I think it’s worth having a consistent story to people when presenting the feature - in the JEP example, it would feel a little unwieldy for QueryBuilder to return its own thunky DeferredPreparedStatement, or similar, for the caller to work with. 

Cheers,

Steve





More information about the amber-dev mailing list