LytixDev / slash

The Slash Scripting Language
GNU General Public License v3.0
7 stars 0 forks source link

enhance: tuple unpacking #58

Closed LytixDev closed 5 months ago

LytixDev commented 11 months ago

Tuple unpacking only works if the RHS is an SeqExpr.

var a,b = 1, 2  # works

var t = (1, 2)
var a, b = $t  # does not work

Tuple unpacking should also work for lists, maps and possible strings as well