Hacker News new | ask | show | jobs
by Blikkentrekker 1969 days ago
It could easily be written as `var a, var b, self.c = foo()`.

Having the same syntax for initialization and assignment is quite quæstionable.

1 comments

That’s not a bad suggestion, but it’s quite verbose (it would require declaring multiple variables as `var x, var y, var z` instead of `var x, y, z`).
That could easily be `var (x, y, z) =`, which is similar to what many languages use.