Skip to content

Issue 150 alternate #154

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

Draft
wants to merge 9 commits into
base: trunk
Choose a base branch
from

Conversation

bandophahita
Copy link
Contributor

No description provided.

Copy link
Member

@perrygoy perrygoy left a comment

Choose a reason for hiding this comment

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

I think you're right, the other way is preferable. Thanks for doing the extra work for a side-by-side comparison!

Comment on lines +72 to +74
val
for action in self.try_performables
if (val := get_additive_description(action))
Copy link
Member

Choose a reason for hiding this comment

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

praise: I have never used a walrus in a comprehension but honky bunks it works, pretty cool!

Copy link
Member

Choose a reason for hiding this comment

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

discussion: That said, i think i don't like this side effect of doing the check in get_additive_description. Seeing it in practice now makes me feel like the is_silent approach is the correct one, so each description can decide for itself what to do about silenced ducks.

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.

2 participants