by berkut · 11y ago · 0 comments
Hanging braces style for C/C++ is rarely allowed in the coding standards I've had to use in the past for embedded and real-time stuff in the defence industry, because it can be a source of errors.
Aligned opening and closing braces are much more common (in line with ADA's style).
By default it just warns. That's not enforcing.
How about making it the opposite, '#![allow(default_style)]'? Or at least '#![allow(non_default_style)]'?
But I get your point. I think people would be open to that naming change if you file an issue.
Maybe I could at least try, yes. I mean... It's kind of silly, I know, but that would already change the way I look at Rust.