Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
gbfowler
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
gbfowler
8y ago
It is not syntactic sugar, "x := 10" is an assignment expression in contrast with "x = 10", which is a statement . Hence the former can be used in contexts like "if x := 10: pass", which is the whole point o