On Tue, 29 Nov 2022 12:22:38 GMT, Afshin Zafari <d...@openjdk.org> wrote:
>> Not sure ... didn't we start using C++ lambda's for some of these "closure" >> operations? @coleenp what is the usual pattern we use for this kind of thing? > > The `unlink` method of `ResourceHashTable` gets an ITER type and calls its > `do_entry(Key&,Value&)` method. > If we want to use lambdas, `unlink` should call the input directly and not > one of its methods. We don't have a lambda version of unlink (yet). The local struct is fine IMO. ------------- PR: https://git.openjdk.org/jdk/pull/11288