[swift-evolution] [Pitch] Object aliases
Daryle Walker
darylew at mac.com
Fri Jun 30 01:58:47 CDT 2017
> On Jun 29, 2017, at 6:45 PM, Beta <rwidmann at apple.com> wrote:
>
> So, what’s the difference between this and teaching Key Paths to look through tuple indices - that was the only part of your example I couldn’t directly express.
You’re talking about Apple’s Cocoa’s KVC/KVO, right? The key-path method is like the lenses idea bouncing around this thread, except KVO/KVC doesn’t take Swift-specific stuff (like tuples) into account. Key-path and lenses are resolved at run-time, while the posing-aliases here should be resolved at compile-time (or whenever the memory locations of globals and named locals are resolved).
—
Daryle Walker
Mac, Internet, and Video Game Junkie
darylew AT mac DOT com
More information about the swift-evolution
mailing list