3 ms·
I never understood the cutesy naming schemes. What's wrong with .filter or .where.
by meowface 12y ago
I never understood the cutesy naming schemes. What's wrong with .filter or .where.
- erikano 12y agoI agree, but I guess .filter or .where could be more difficult to understand for beginners.
- nilliams 12y agoAgree. Hopefully (?) it's just JS by the point we get to `Mail.outgoingMessages` so it should be fairly straightforward to mix-in underscore's methods into whatever their 'collection' representation is, the same way Backbone does [1] to give you map/filter/which etc. [1] http://backbonejs.org/#Collection-Underscore-Methods http://backbonejs.org/#Collection-Underscore-Methods
- turingcar 12y agoIn fact, you can use either “whose” or “where”, and the AppleScript language guide refers to this as “Filter”: <https://developer.apple.com/library/mac/documentation/applescript/conceptual/applescriptlangguide/reference/ASLR_reference_forms.html#//apple_ref/doc/uid/TP40000983-CH4g-BAJJHEFE> https://developer.apple.com/library/mac/documentation/apples...