Re:A fun optimization trick from rsync
by dsamarin on Monday October 29, 2018 @07:32AM
(#18326588)
A terminating null element or logical equivalent in an array is helpful in lots of situations. As one example it simplifies the logic of looking for an element in an array and performing some special operation if it was not found. No bool found variable necessary.
[ Parent
| on HN ]
Re:A fun optimization trick from rsync
by jbverschoor on Monday October 29, 2018 @10:56AM
(#18327986)
Well yes, but it can easily be removed by accident, and is easy to oversee. See the parent comment