<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>If we start from this thought…</div><div id="AppleMailSignature"><br></div><div>Adrian Zubarev wrote:<br>Shouldn’t it be just like this:</div><blockquote type="cite">

<pre><code class="swift">public protocol ExpressibleByNilLiteral {

  init(nilLiteral: Nil)
}</code></pre></blockquote><br><div>Then why not just:</div><div><br></div><div>&nbsp; &nbsp; public protocol ExpressibleByIntLiteral {</div><div>&nbsp; &nbsp; &nbsp; static var `nil`: Self</div><div>&nbsp; &nbsp; }</div><div><br></div><div>…such that Foo.nil creates your nil value of type Foo?</div><div><br></div><div>— Pyry</div><div><br></div></body></html>