Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Blikkentrekker
on Feb 5, 2021
|
parent
|
context
|
favorite
| on:
Python’s tug of war between beginner-friendly and ...
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.
pansa2
on Feb 5, 2021
[–]
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`).
Blikkentrekker
on Feb 5, 2021
|
parent
[–]
That could easily be `var (x, y, z) =`, which is similar to what many languages use.
Consider applying for YC's Fall 2026 batch!
Applications
are open till July 27.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Having the same syntax for initialization and assignment is quite quæstionable.