8

I think the walrus operator (:=) in the new python version 3.8 should've been integrated with the assignment operator. I don't think it needs a special name as it just makes it more complex than it is; a damn assignment statement in the middle of an expression.

Comments
  • 0
    I agree..
  • 0
    How would it be used? I'm not a python dev but am interested.
    @highlight
  • 1
    The assignment operator should disallow variable declaration outright with the walrus operator being the only way to declare a variable
  • 0
    It would break backwards compatibility. I'd rather not go to Python 4 because suddenly assignment operations return the value they were assigned.
Add Comment