News for hackers. Stuff that matters.
Re:Show HN: NSString + Ruby by jakobe on Friday October 11, 2013 @05:27AM (#6532174)
Okay, now I get it, the naming makes autocomplete more convenient.

Returning void makes it easier to spot errors. If you accidentally use "capitalizeInPlace" instead of "capitalizedString" your code will compile without issues. If the mutating method returned void, it would result in a compile error.

Re:Show HN: NSString + Ruby by thingsdoer on Friday October 11, 2013 @05:46AM (#6532214)
That's an extreme edge case though, since if you're using a mutating method, you're using a mutating string, and you're probably aware of that.