I disagree. Swift and C++ are very different languages and should be treated as 
such. We already use the `swift-format` tool for all WebKit Swift code using a 
style I came up with several years ago based on conventional/common Swift 
style, and I think we should continue doing so. And it automatically 
formats/lints too based on the style even!

- Richard

> On Nov 3, 2026, at 5:55 PM, Ryosuke Niwa via webkit-dev 
> <[email protected]> wrote:
> 
> Hi all,
> 
> As we adopt more Swift in cross-platform parts of WebKit, we need to decide 
> what kind of coding styles we’d adhere to.
> 
> I suggest that we adopt the existing C++ coding style guidelines for Swift 
> with one modification: curly braces around a single-line statement are 
> mandatory in Swift.
> 
> Thoughts?
> 
> - R. Niwa
> 
> _______________________________________________
> webkit-dev mailing list -- [email protected]
> To unsubscribe send an email to [email protected]

_______________________________________________
webkit-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to