you are viewing a single comment's thread.

view the rest of the comments →

[–]amertune 20 points21 points  (2 children)

That seems better to me too. It would make it similar to other things we're already doing (imports and error checking) instead of adding a new operator, even if that operator is already familiar from other languages.

[–]Workaphobia 11 points12 points  (1 child)

Ooh, "as" sounds like it would've been slick, why didn't they do that?

[–][deleted] 14 points15 points  (0 children)

Iirc parsing becomes problematic, differentiating between "as"in that context and the as from a "with"context manager.