RFR: 8264707: HotSpot Style Guide should permit use of lambda
David Holmes
dholmes at openjdk.java.net
Thu Aug 19 07:52:25 UTC 2021
On Wed, 18 Aug 2021 11:27:24 GMT, Kim Barrett <kbarrett at openjdk.org> wrote:
>> doc/hotspot-style.md line 721:
>>
>>> 719: is an alternative to having a function or function object class defined at
>>> 720: class or namespace scope. Instead, a function class definition is placed
>>> 721: directly at the point of use.
>>
>> Suggested rewording:
>>
>>> ... namespace scope, instead placing it directly at the point of use.
>
> 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.
-------------
PR: https://git.openjdk.java.net/jdk/pull/5144
More information about the hotspot-dev
mailing list