<div dir="ltr">I propose upgrading bit-casting labels to match the new API design guidelines. Here's what we have today:<div><br></div><div><div>UInt8(bitPattern: someInt8)</div><div>Uint8(truncatingBitPattern: someBiggerInt)</div></div><div><br></div><div><div>"Bit pattern" has the needless word "pattern" while not reading well due to the lack of a verb or preposition. Simply "bits" will not be confused with something else in this context. "Truncating" is the present participle which is confusing.</div><div><br></div></div><div>I like:</div><div>UInt8(fromBits: someInt8)</div><div>Uint8(truncateBits: someBiggerInt)</div><div><br></div><div>-david<br></div><div><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 16, 2016 at 11:29 AM, Dave Abrahams via swift-evolution <span dir="ltr"><<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class=""><br>
on Tue Feb 16 2016, David Turnbull <<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a>> wrote:<br>><br>
> My last week was spent reading files with huffman coding. So I had no<br>
> choice but to use bitwise operations. My experience is that Swift got this<br>
> right (except for "truncatingBitPattern" taking up 25% of an 80 column<br>
> line).<br>
<br>
</span>Suggestions for improved names welcomed.<br></blockquote></div></div></div></div>