[swift-evolution] [Pitch] KeyPath based map, flatMap, filter

Tino Heth 2th at gmx.de
Mon Jul 17 07:02:55 CDT 2017


I hope for Swift meta-programming features evolving alongside reflection (both topics imho still need a complete concept):
How about
collection.map(MyObject.myProperty.get)
or, to avoid possible ambiguity, something like
collection.map(.myProperty#get)
?


More information about the swift-evolution mailing list