Message329731
I just want to add one more voice for allowing the status quo:
C, OCaml, SML, Haskell allow the assignment, Ruby disallows it.
The ML family must allow it, since "let (x) = 10" is pattern matching
under the hood, and (10) = 10.
In C (gcc, clang at least, I didn't check the standard) it may be convenience.
Python's assignment unpacking is similar to pattern matching, so
while the construct is surprising at first, I think it's the right
thing to do. |
|
| Date |
User |
Action |
Args |
| 2018-11-12 13:31:43 | skrah | set | recipients:
+ skrah, gvanrossum, mark.dickinson, benjamin.peterson, serhiy.storchaka, pablogsal |
| 2018-11-12 13:31:43 | skrah | set | messageid: <[email protected]> |
| 2018-11-12 13:31:43 | skrah | link | issue35207 messages |
| 2018-11-12 13:31:43 | skrah | create | |
|