Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
deltasevennine
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
38 ms
·
331.
▲
by
deltasevennine
4y ago
Can someone explain to me why the second example is better. To me it seems to be the same thing. Replace result with int and I literally do not see a problem with the first one. Also why is a mutex or lock needed for Result in javascript? A