[webkit-dev] Initializing member variables

Timothy Hatcher timothy at apple.com
Thu Sep 19 15:12:32 PDT 2024


+1 for { }.

— Timothy Hatcher

> On Sep 19, 2024, at 2:55 PM, Ryosuke Niwa via webkit-dev <webkit-dev at lists.webkit.org> wrote:
> 
> 
> Should we do:
> 
> struct Foo {
>     int bar = 0;
> }
> 
> Or
> 
> struct Foo {
>     int bar { 0 };
> }
> 
> We do both at the moment.
> 
> - R. Niwa
> 
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> https://lists.webkit.org/mailman/listinfo/webkit-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20240919/844e33aa/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3623 bytes
Desc: not available
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20240919/844e33aa/attachment.bin>


More information about the webkit-dev mailing list