Improving Method Reference Ergonomics
Pedro Lamarão
pedro.lamarao at prodist.com.br
Mon Dec 9 15:47:31 UTC 2024
Em dom., 8 de dez. de 2024 às 22:53, Peter Eastham <petereastham at gmail.com>
escreveu:
> If there was greater access to the Method Reference more implicit
> information could be passed, reducing the noise,
> CriteriaQuery q = CriteriaQuery.createQuery(Customer::new)
> .leftJoin(Customer::orders)
> .where(Object::equals, Customer::status, 1);
> var result = q.select();
>
>
Is this about having the expression Customer::status evaluate to, say, a
VarHandle for getting / setting the status attribute?
I am reminded of C# properties which seem to me a peculiar intermediate
kind of thing between attributes and methods.
--
Pedro Lamarão
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/amber-dev/attachments/20241209/2d82a7ac/attachment.htm>
More information about the amber-dev
mailing list