March 14, 2009
5:30 p.m.
On Sat, Mar 14, 2009 at 10:15 AM, And Clover <and-dev@doxdesk.com> wrote:
Jervis Whitley wrote:
if (something as x) == other: # can now use x.
Interesting. I'd definitely prefer that to the C-style inline assignment syntax: I think it reads better, and there's less chance of the Accidental Assignment Instead Of Comparison trap that has plagued other languages.
I remain to be convinced that inline assignment is enough of a win in general, but if implemented, that's the syntax I'd want.
Perhaps you want to replace top-level assignments with "expr as target" as well? -- --Guido van Rossum (home page: http://www.python.org/~guido/)