Skip to content
This repository has been archived by the owner on Nov 21, 2022. It is now read-only.

Consider adding an 'else:' clause #147

Open
gvanrossum opened this issue Aug 26, 2020 · 3 comments
Open

Consider adding an 'else:' clause #147

gvanrossum opened this issue Aug 26, 2020 · 3 comments
Labels
fully pepped Issues that have been fully documented in the PEP rejected A rejected idea sc-feedback Issues raised in the steering committee feedback

Comments

@gvanrossum
Copy link
Owner

Several SC members seem to be in favor of adding an else: clause. I didn't see anyone express a preference for the indentation (align with match or case?) but if we adopted the alternative indentation scheme (#144) this would be resolved.

I could live with this (especially if it was aligned with case).

@gvanrossum gvanrossum added the sc-feedback Issues raised in the steering committee feedback label Aug 26, 2020
@Tobias-Kohn
Copy link
Collaborator

Since I have probably been one of the most vocal about the indentation of else:: if this is the only thing that stands in our way to make a lot of people happy who really want to have an else:, then I completely withdraw any objections concerning indenting it on the level of case: (I still think it's "wrong", but to be honest, I don't need the else:, anyway 😉).

@gvanrossum gvanrossum added fully pepped Issues that have been fully documented in the PEP rejected A rejected idea labels Sep 16, 2020
@gvanrossum
Copy link
Owner Author

In our VC with the SC (the SC-VC), we ended up agreeing this was not needed.

@gvanrossum gvanrossum added needs more pep An issue which needs to be documented in the PEP and removed rejected A rejected idea labels Sep 16, 2020
@gvanrossum gvanrossum added rejected A rejected idea and removed needs more pep An issue which needs to be documented in the PEP labels Oct 20, 2020
@gvanrossum
Copy link
Owner Author

Labeling rejected (we're not adding 'else:') and fully pepped (this is addressed in PEP 635: under "Wildcard Pattern", search for "Else blocks."

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
fully pepped Issues that have been fully documented in the PEP rejected A rejected idea sc-feedback Issues raised in the steering committee feedback
Projects
None yet
Development

No branches or pull requests

2 participants