Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pxia
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
1.
▲
by
pxia
7y ago
When the gain is smaller than the cost of hiring people to do the claim.
2.
▲
by
pxia
8y ago
It's just an example... Another example would be you want to iterate your array in reverse. The normal `for (uint i=size-1; i >= 0; i--)` won't work.
3.
▲
by
pxia
8y ago
Because you want to represent errors. For example a find() function that returns the index of some element: you want to return -1 when the element doesn't exist.