patma
patma copied to clipboard
Consider adding an 'else:' clause
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
).
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 :wink:).
In our VC with the SC (the SC-VC), we ended up agreeing this was not needed.
Labeling rejected (we're not adding 'else:') and fully pepped (this is addressed in PEP 635: under "Wildcard Pattern", search for "Else blocks."