[swift-evolution] [Pitch] Improving KeyPath
Joe Groff
jgroff at apple.com
Fri Aug 25 15:46:37 CDT 2017
> On Aug 25, 2017, at 1:45 PM, Eagle Offshore <eagleoffshore at me.com> wrote:
>
>
>> On Aug 25, 2017, at 1:35 PM, Joe Groff <jgroff at apple.com <mailto:jgroff at apple.com>> wrote:
>>
>> What do you mean exactly by traits? That's an overloaded term.
>
>
> http://scg.unibe.ch/archive/papers/Scha03aTraits.pdf <http://scg.unibe.ch/archive/papers/Scha03aTraits.pdf>
>
> Like PHP or Pharo traits. Like a protocol that has a default implementation that comes along with it.
OK. Swift already has protocol extensions, which let you provide default implementations alongside protocols.
-Joe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20170825/5f0875e2/attachment.html>
More information about the swift-evolution
mailing list