[Python-ideas] for/else statements considered harmful (original) (raw)
Carl M. Johnson cmjohnson.mailinglist at gmail.com
Thu Jun 7 02:44:04 CEST 2012
- Previous message: [Python-ideas] for/else statements considered harmful
- Next message: [Python-ideas] for/else statements considered harmful
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Jun 6, 2012, at 1:58 PM, Bruce Leban wrote:
If a context-sensitive keyword would work I'd go for something more like
for ... [ else empty: ] else [ no match ] : This would not introduce any incompatibilities.
Since None is now a keyword, you could say "else if None" but that might be confusing, since None is different than empty.
- Previous message: [Python-ideas] for/else statements considered harmful
- Next message: [Python-ideas] for/else statements considered harmful
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]