RFR: 8264707: HotSpot Style Guide should permit use of lambda
Kim Barrett
kbarrett at openjdk.java.net
Thu Aug 19 08:45:24 UTC 2021
On Thu, 19 Aug 2021 07:49:00 GMT, David Holmes <dholmes at openjdk.org> wrote:
>> The wording was intentional; "it" would refer to "a function or function object class", but a *function* can't be locally defined. But it should be consistent about "function object class" vs "function class". The former is the terminology used by the Standard.
>
> There should be a consistent subject for each of those sentences, such that "it" would unambiguously be that subject, and then you can combine the second and third sentences into one.
Changing the paragraph to this is probably better. The third sentence didn't really add anything.
"Single-use function objects can be defined locally within a function, directly at the point of use. This is an alternative to having a function or function object class defined at class or namespace scope."
-------------
PR: https://git.openjdk.java.net/jdk/pull/5144
More information about the hotspot-dev
mailing list