-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Return an empty container from select, reject, etc... #34
Comments
I suppose it would be closer to the API, but BlocksKit isn't just about Thanks for using and contributing to BlocksKit! |
I recently heard some rather convincing arguments as per this issue. I think we might change it for the next release. |
Cool, I still stand behind this change. Brandon Williams On Saturday, February 18, 2012 at 5:25 PM, Zachary Waldowski wrote:
|
Completed in BlocksKit 1.0.6. |
It seems that a more consistent API choice for the select/reject family of methods is to return an empty container (NSSet, NSArray or NSDictionary) instead of
nil
when nothing is matched.Maybe it's too late to change this, but conceptually I think it makes more sense.
The text was updated successfully, but these errors were encountered: