Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Style Guide update #3122

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Style Guide update #3122

wants to merge 3 commits into from

Conversation

gkepka
Copy link
Contributor

@gkepka gkepka commented Dec 2, 2024

No description provided.

@gkepka gkepka marked this pull request as ready for review December 9, 2024 09:42
Comment on lines -82 to -86
The exceptions to this rule are `for`-comprehensions which lack a
`yield` clause. In such cases, the construct is actually a loop rather
than a functional comprehension and it is usually more readable to
string the generators together between parentheses rather than using the
syntactically-confusing `} {` construct:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest to drop this since the arguments for using one-generator-per-line syntax hold no matter whether the next keyword is do or yield

Comment on lines -14 to -15
As a rule, files should contain a *single* logical compilation unit. By
"logical" I mean a class, trait or object. One exception to this
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This resolves #1621 by removing the confusing concept entirely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant