You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Are you saying we should have blank lines between all multiline statements in general? We currently allow that:
Blank lines MAY be added to improve readability and to indicate related blocks of code except where explicitly forbidden.
I don't think it makes sense to add blank lines between multiline statements as a requirement at this point because it would require changes to a ton of code in the wild with limited improvements to readability.
@KorvinSzanto yes but it's exactly for changes in existing code and impovements to readability this project does exist, doesn't it?
Anyway we can insert blank lines in trait example even without adding a rule about blank lines.
When people will start adjusting their style guides to match PER then they will look not only at explicit rules but for sure they will look at the code examples.
So it will encourage to use blank lines around multiline blocks not forbidding to do otherwise.
I'd accept a pull request that adds blank lines to the given example if that's all you're after but I don't think we want to require blank lines today.
See Steven Mcconnell "Code Complete", page 729, chapter 31 "Layout and Style".
Blocks (multiline statements) must be delimited with a blank line.
So instead of
you get
It's more readable and keeps consistent rythm throughout all text.
The text was updated successfully, but these errors were encountered: