News for hackers. Stuff that matters.
Re:What Is Null? (2010) by rogual on Sunday August 04, 2019 @06:16AM (#20605546)
> The moment you pass that value out of the context of the function, you need to remember that null means EndOfString

Good point, and I don't disagree, but it's also interesting to note that once you return 4 from CountChildren(), you similarly have to remember that it represents the number of children.

Re:What Is Null? (2010) by _hardwaregeek on Monday August 05, 2019 @12:37AM (#20611329)
Except you can always assign the result of CountChildren to a `childrenCount` variable. Is there a variable name you could give to the result of `parse` that'd accurately describe the error states?