Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
rustandmore
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
rustandmore
1y ago
Ownership is perfectly consistent. `append` always returns a new slice value `func append(slice []Type, elems ...Type) []Type` The only correct way to use append is something like `sl = append(sl, 1, 2, 3)` `sl` is now a new slice value,
2.
▲
by
rustandmore
1y ago
Most of non-opinion parts of this article are "Go sucks because <insert newbie mistake>" or otherwise factually incorrect points. At that point, all languages suck because there's newbie mistakes and I don't unders