[swift-evolution] Proposal: Change of syntax for class protocols

Guillaume Lessard glessard at tffenterprises.com
Tue Dec 8 14:22:34 CST 2015


> On 8 déc. 2015, at 10:36, Felix Gabel via swift-evolution <swift-evolution at swift.org> wrote:
> 
> A class protocol is only necessary to fulfill the requirements for a weakly referenced instance (e.g. delegate pattern).
> 

There are such things as thread-safe data structures, e.g. message queues. Many such constructs require reference semantics for their interface to make sense. As long as the language can have reference semantics, it must be possible to restrict specific protocols to those semantics.

Guillaume Lessard



More information about the swift-evolution mailing list