Emil A Eklund
unread,Mar 15, 2018, 2:35:15 PM3/15/18Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Peter Kasting, Jeremy Roman, TAMURA, Kent, Victor Costan, Daniel Cheng, blink-dev
On Thu, Mar 15, 2018 at 11:22 AM, Peter Kasting <
pkas...@chromium.org> wrote:
> On Thu, Mar 15, 2018 at 10:47 AM Emil A Eklund <
e...@chromium.org> wrote:
>>
>> So somehow in this discussion we seem to have gone from "not requiring
>> obvious parameters to be omitted" to "not allowing parameters to be
>> omitted".
>
> To make sure there's no miscommunication, no one has proposed banning
> parameter omission -- the Google style guide allows it, it just allows it in
> fewer cases than Blink currently requires it.
While technically true what you are proposing is changing from
*requiring* omission to *disallowing* omission in the vast majority of
cases. The one allowed case for omission being obvious and *unused*
parameters which is much more restrictive and doesn't really come into
play in blink much at all.
That is a pretty big style guide change.
> The closest we got was me saying I personally like when names are never
> omitted, but I'm not proposing that govern the project.
>
>> I'm perfectly fine with dropping the requirement to omit but
>> I do object to not allowing it. We have *a lot* of very specific types
>> used as parameters in blink and requiring all of them to be named in
>> the definition will lead to very long lines and multi-line function
>> definitions. Hurting readability without adding any value.
>
> Can you describe how Blink's needs differ from google3's here that would
> suggest we should keep some kind of Blink-specific rule?
The Blink code base for the longest time strongly discouraged comments
and instead encouraged very specific type and function names. As such
we have type names that are super specific and quite long, negating
the need for parameter names as they add no value.
I'd also argue that the intent behind the recent google3 style change
to allow omission is to allow this type of omission however it seems
we interpret that rule differently.
Thanks for listening.