When can String.enumerateSubstringsInRange ever pass in NIL?
When can String.enumerateSubstringsInRange ever pass in NIL?
- Subject: When can String.enumerateSubstringsInRange ever pass in NIL?
- From: Daryle Walker <email@hidden>
- Date: Sat, 28 May 2016 21:27:26 -0400
The last argument to the method is a closure with four parameters. The first argument is an optional String. I can't think of a circumstance where it'll be NIL. (I need to know for testing.) Especially since it can be recreated in terms of the callback's second argument, which isn't optional. (So the string can be empty at worst.). Am I missing something, or is this a bug (and should be non-optional)?
Sent from my iPhone
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden