<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">It appears that the current integer conversion initializers will either always work, possibly trap, or truncate:</div><div class=""><br class=""></div><div class=""><blockquote type="cite" class="">init(_: Int)<br class="">init(_: Int8)<br class="">init(_: Int16)<br class="">init(_: Int32)<br class="">init(_: Int64)<br class="">init(_: UInt)<br class="">init(_: UInt8)<br class="">init(_: UInt16)<br class="">init(_: UInt32)<br class="">init(_: UInt64)<br class="">init(truncatingBitPattern: Int)<br class="">init(truncatingBitPattern: Int16)<br class="">init(truncatingBitPattern: Int32)<br class="">init(truncatingBitPattern: Int64)<br class="">init(truncatingBitPattern: UInt)<br class="">init(truncatingBitPattern: UInt16)<br class="">init(truncatingBitPattern: UInt32)<br class="">init(truncatingBitPattern: UInt64)<br class=""></blockquote><div class=""><br class="webkit-block-placeholder"></div><div class="">I suggest that we change trapping initializers to failable initializers. Initializers that can't fail (identity, unsigned -&gt; bigger signed/unsigned, signed -&gt; bigger signed) should keep a non-Optional type.</div><div class=""><br class=""></div><div class="">This could extend to changing SignedIntegerType's and UnsignedIntegerType's (U)IntMax to failable initializers as well.</div><div class=""><br class="webkit-block-placeholder"></div><div class="">I think I remember someone on the core team saying that someone's working on integer types at the moment. Is that right?</div><div class="">
<br class="Apple-interchange-newline"><span style="color: rgb(0, 0, 0); font-family: 'Lucida Grande'; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none;" class="">FĂ©lix</span>
</div>

<br class=""></div></body></html>