Does anyone have some insight into why the block parameter of
- (void)enumerateMatchesInString:(NSString *)string
options:(NSMatchingOptions)options
range:(NSRange)range
usingBlock:(void (^)(NSTextCheckingResult *result, NSMatchingFlags flags, BOOL *stop))block
passes stop
by reference instead of returning it?
It seems 'obvious' to me that you could use the return value for that which proabbly means that I am missing something and I would like to know what I am missing. (The only thing that I can think of is that you are able to provide a name for pass by reference variables to make their meaning clearer.)