<div style="white-space:pre-wrap">&gt; There is no &quot;parameter&quot; to pass here; in particular the user should not be expected to know off the top of their head what the key size for Curve25519 is.<br><br>You can easily call a private parametrized init from a class function though. <br><br><br>&gt; The trailing colon gives me some anxiety; I feel like it wants something to follow it.<br><br>Sure, it&#39;s not the most beautiful construct, but it unambiguously identifies the preceding token as a label name. </div><br><div class="gmail_quote"><div dir="ltr">On Sun, Dec 13, 2015 at 16:09 Drew Crawford &lt;<a href="mailto:drew@sealedabstract.com">drew@sealedabstract.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><br><div><blockquote type="cite"><div>On Dec 13, 2015, at 7:03 AM, ilya &lt;<a href="mailto:ilya.nikokoshev@gmail.com" target="_blank">ilya.nikokoshev@gmail.com</a>&gt; wrote:</div><br><div><span style="font-family:HelveticaNeue;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important">(1) Isn&#39;t using a class function just one more symbol?<span> </span></span></div></blockquote></div><div><br></div></div><div style="word-wrap:break-word"><div>No, a class/static function is not the same as an initializer.  e.g., a class function cannot assign to a let ivar.</div></div><div style="word-wrap:break-word"><div><br></div><div></div><blockquote type="cite"><div><span style="font-family:HelveticaNeue">(2) Wouldn&#39;t this syntax be more logical:</span><br style="font-family:HelveticaNeue"><span style="font-family:HelveticaNeue">Key {</span><br style="font-family:HelveticaNeue"><span style="font-family:HelveticaNeue">init(forRSA: Void) { /* */ }</span><br style="font-family:HelveticaNeue"><span style="font-family:HelveticaNeue">}</span><br style="font-family:HelveticaNeue"><br style="font-family:HelveticaNeue"><span style="font-family:HelveticaNeue">Key(forRSA:)</span></div></blockquote><div><br></div></div><div style="word-wrap:break-word"><div>Maybe.  The trailing colon gives me some anxiety; I feel like it wants something to follow it.</div><div><br></div><div><br></div></div></blockquote></div>