Hey Swifters! I am looking for some feedback on the proper place to put this:
I made a thing to use KeyPaths to try and make creating predicates at least less Stringly-typed. I realize this has been proposed, in various fashions before:
- Kuery, where I got the idea for most of this implementation, which led to
- SR-5220 that's been sitting around for a while, and a
- Prior attempt at creating a draft spec that wasn't quite tied to NSPredicate
The key difference (as I see it) with what I've tried to pull together here is that I'm not trying to do operator overloading or create an additional
Predicate layer for Swift on top of
NSPredicate that could then be supported cross-platform - just make it easier to use
NSPredicate in a way that is a) Type-safe and b) Avoids having to hard-code strings.
My bottom-line question: What is the best way to suggest Swift API improvements with possible sample code for Apple-owned APIs? Is it:
b) Swift Bugs
c) Swift Evolution
I think not c) since it's not purely Swift related (but change my mind if you disagree), but it'd be something I'd love to see be made easier across the board. It's a specifically Swift-related enhancement request rather than anything that has to do with the underlying API itself, so I'm not sure whether a) or b) makes more sense.
Any thoughts would be most appreciated. Thanks!