<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="">On Dec 16, 2015, at 2:56 PM, Paul Ossenbruggen via swift-evolution <<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>> wrote:<br class=""><div><blockquote type="cite" class="">I believe it also addresses the issues that Chris mentioned. <br class=""><div class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><div class=""><br class=""></div><div class="">to select from a boolean, a or b:</div><div class=""><font face="Monaco" class="">let a = sel ->> true, false</font></div><div class=""><br class=""></div><div class="">to select from an enum values as in a switch:</div><div class=""><br class=""></div><div class=""><font face="Monaco" class="">let a = sel ->> </font><span style="font-family: Monaco;" class="">.Red: 1, .Green: 2, .Blue: 3 </span></div><div class=""><font face="Monaco" class="">let b = sel ->> .Red: 1, .Green: 2, .Blue: 3, default: 4</font></div><div class=""><font face="Monaco" class="">let c = sel ->> case .Red: 1, case .Green: 2, case .Blue: 3, default: 4</font></div><div class=""><font face="Monaco" class="">let d = sel ->> .Red: 1, (sel ->> .Sun: .Yellow, .Moon: .White, .Stars: .Twinkle), .Green: 2, .Blue: 3, default: 4</font></div></div><div class=""><span style="font-family: Monaco;" class="">let e = sel ->> cases: .Red: 1, case .Green: 2, case .Blue: 3, default: 4</span></div><div class=""><span style="font-family: Monaco;" class=""><br class=""></span></div><div class=""><b class="">Disadvantages:</b></div><div class="">• May be a slight improvement in readability. Operators have to be looked up if you are not familiar with them. </div><div class="">• New concept that will have to be learned and not present in most C like languages so needs to be learned. </div></div></div></blockquote><br class=""></div><div>This specific proposal has another problem. Since you’re using “,” you’ve introduced grammar problems. For example, you wouldn’t be able to use this operator in a function argument list or array literal, because the , would be parsed as part of the argument list separator.</div><div><br class=""></div><div>-Chris</div><br class=""></body></html>