[webkit-dev] [Styling] Space between [] and () in C++ lambdas
Michael Catanzaro
mcatanzaro at gnome.org
Fri Nov 1 11:53:39 PDT 2019
On Fri, Nov 1, 2019 at 11:19 am, Ryosuke Niwa <rniwa at webkit.org> wrote:
> Namely, some people write a lambda as:
> auto x = [] () { }
>
> with a space between [] and () while others would write it as:
>
> auto x = []() { }
: I omit the () when there are no parameters, as in these examples.
No preference on spacing.
More information about the webkit-dev
mailing list