<html><body><div>I have the following code snippet that compile OK in swift 3</div><div><br data-mce-bogus="1"></div><div><p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: #008400;" data-mce-style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: #008400;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;bytes = Array(UnsafeBufferPointer(....))</p><p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: #008400;" data-mce-style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: #008400;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; let filenamelength = bytes[(i+28)..&lt;(i+28+2)]</p><p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: #008400;" data-mce-style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: #008400;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .enumerated()</p><p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: #008400;" data-mce-style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: #008400;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .map { (index, element) in return Int(Double(element) * pow(256,Double(index))) }</p><p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: #008400;" data-mce-style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: #008400;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .reduce(0, +)</p><p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: #008400; min-height: 13px;" data-mce-style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: #008400; min-height: 13px;">&nbsp;</p><p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: #008400; min-height: 13px;" data-mce-style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: #008400; min-height: 13px;"><span style="color: #000000; font-family: SFNSText, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; font-style: normal; font-variant-caps: normal; font-weight: 300; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #ffffff; display: inline !important; float: none;" data-mce-style="color: #000000; font-family: SFNSText, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; font-style: normal; font-variant-caps: normal; font-weight: 300; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #ffffff; display: inline !important; float: none;">I have the following code snippet that compile OK in swift 3</span></p><p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: #008400; min-height: 13px;" data-mce-style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: #008400; min-height: 13px;"><span style="color: #000000; font-family: SFNSText, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; font-style: normal; font-variant-caps: normal; font-weight: 300; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #ffffff; display: inline !important; float: none;" data-mce-style="color: #000000; font-family: SFNSText, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; font-style: normal; font-variant-caps: normal; font-weight: 300; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #ffffff; display: inline !important; float: none;">In Swift 4 (Xcode beta1) it compiled with error something like "... too complex"</span></p><p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: #008400; min-height: 13px;" data-mce-style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: #008400; min-height: 13px;"><span style="color: #000000; font-family: SFNSText, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; font-style: normal; font-variant-caps: normal; font-weight: 300; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #ffffff; display: inline !important; float: none;" data-mce-style="color: #000000; font-family: SFNSText, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; font-style: normal; font-variant-caps: normal; font-weight: 300; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #ffffff; display: inline !important; float: none;">Now in Swift 4 Xocde beta2 the error is&nbsp;</span><span style="color: #000000; font-family: SFNSText, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; font-style: normal; font-variant-caps: normal; font-weight: 300; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #ffffff; display: inline !important; float: none;" data-mce-style="color: #000000; font-family: SFNSText, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; font-style: normal; font-variant-caps: normal; font-weight: 300; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #ffffff; display: inline !important; float: none;">tuple parameter element does not support destructing</span></p><p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: #008400; min-height: 13px;" data-mce-style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: #008400; min-height: 13px;"><span style="color: #000000; font-family: SFNSText, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; font-style: normal; font-variant-caps: normal; font-weight: 300; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #ffffff; display: inline !important; float: none;" data-mce-style="color: #000000; font-family: SFNSText, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; font-style: normal; font-variant-caps: normal; font-weight: 300; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #ffffff; display: inline !important; float: none;">what has been changed in swift 4 ?</span></p><p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: #008400; min-height: 13px;" data-mce-style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: #008400; min-height: 13px;"><span style="color: #000000; font-family: SFNSText, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; font-style: normal; font-variant-caps: normal; font-weight: 300; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #ffffff; display: inline !important; float: none;" data-mce-style="color: #000000; font-family: SFNSText, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; font-style: normal; font-variant-caps: normal; font-weight: 300; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #ffffff; display: inline !important; float: none;"><br data-mce-bogus="1"></span></p><p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: #008400; min-height: 13px;" data-mce-style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: #008400; min-height: 13px;"><span style="color: #000000; font-family: SFNSText, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; font-style: normal; font-variant-caps: normal; font-weight: 300; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #ffffff; display: inline !important; float: none;" data-mce-style="color: #000000; font-family: SFNSText, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; font-style: normal; font-variant-caps: normal; font-weight: 300; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #ffffff; display: inline !important; float: none;">Please help how to solve it ?</span></p><p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: #008400; min-height: 13px;" data-mce-style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: #008400; min-height: 13px;"><span style="color: #000000; font-family: SFNSText, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; font-style: normal; font-variant-caps: normal; font-weight: 300; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #ffffff; display: inline !important; float: none;" data-mce-style="color: #000000; font-family: SFNSText, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; font-style: normal; font-variant-caps: normal; font-weight: 300; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #ffffff; display: inline !important; float: none;"><br data-mce-bogus="1"></span></p><p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: #008400; min-height: 13px;" data-mce-style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: #008400; min-height: 13px;"><span style="color: #000000; font-family: SFNSText, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; font-style: normal; font-variant-caps: normal; font-weight: 300; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #ffffff; display: inline !important; float: none;" data-mce-style="color: #000000; font-family: SFNSText, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; font-style: normal; font-variant-caps: normal; font-weight: 300; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #ffffff; display: inline !important; float: none;">Thanks</span></p><p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: #008400; min-height: 13px;" data-mce-style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: #008400; min-height: 13px;"><span style="color: #000000; font-family: SFNSText, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; font-style: normal; font-variant-caps: normal; font-weight: 300; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #ffffff; display: inline !important; float: none;" data-mce-style="color: #000000; font-family: SFNSText, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; font-style: normal; font-variant-caps: normal; font-weight: 300; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #ffffff; display: inline !important; float: none;"><br data-mce-bogus="1"></span></p></div></body></html>