Better HN
topnewbestaskshowjobs
Log inSign up

pxia

7 karma · joined Mar 20, 2018 (8y ago) · 3 submissions

Submissions

comment 7y ago · link · parent

When the gain is smaller than the cost of hiring people to do the claim.

comment 7y ago · link · parent

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.

comment 7y ago · link · parent

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.