[foreign-jextract] RFR: 8261906: Improve jextract support for virtual functions [v4]

Sebastian Stenzel sebastian.stenzel at gmail.com
Wed Mar 3 14:39:53 UTC 2021


> On 3. Mar 2021, at 15:18, Maurizio Cimadamore <mcimadamore at openjdk.java.net> wrote:
> 
> In other words, I find this:
> 
> foo.f(segment).apply(10, 21F)
> 
> *more* readable (not less) than (and less magic than):
> 
> foo.f(segment, 10, 21F)

Furthermore, the `apply` function can be used from places that don't need to know about segments. This might be helpful for building libs with higher levels of abstraction.


More information about the panama-dev mailing list