News for hackers. Stuff that matters.
Re:Python 3.5.0 by ben336 on Sunday September 13, 2015 @07:42PM (#10213143)
Python 2 & 3 have destructuring. This is talking about having

def fxn(a, (b, c), d):

    pass
Be a valid function signature. So the destructuring is held in the function definition.

Python 3 will still allow

def fxn(a, x, d):

    (b, c) = x

    pass
Both Python and ES6 JavaScript allow destructuring arrays:

//javascript

let [x, y] = [1,2]

#python

[x, y] = [1,2]

(x, y) = (1,2)

Re:Python 3.5.0 by Arnavion on Sunday September 13, 2015 @08:09PM (#10213190)
ES6 does allow that via destructuring - https://babeljs.io/repl/#?experimental=true&evaluate=true&lo...

    function fxn(a, [b, c], d) {
      console.log(a, b, c, d);
    }