Skip to content

Add section for else branches after loop exit#969

Open
Zopolis4 wants to merge 1 commit into
rubocop:masterfrom
Zopolis4:woozy
Open

Add section for else branches after loop exit#969
Zopolis4 wants to merge 1 commit into
rubocop:masterfrom
Zopolis4:woozy

Conversation

@Zopolis4

Copy link
Copy Markdown

Comment thread README.adoc
@Zopolis4 Zopolis4 changed the title Add section for else branches after next statements Add section for else branches after loop exit Sep 21, 2025
@andyw8

andyw8 commented Feb 16, 2026

Copy link
Copy Markdown
Contributor

I think there's some nuance to this.

If some_condition is acting like a guard clause, then this structure makes sense.

But if it's checking a business condition, the if/else structure may be a better representation of the underlying domain rule.

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.

3 participants