<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="">If someone came with a nice syntax I’d be for this. I can’t imagine what that would be.<div class=""><br class=""></div><div class="">I doubt there is an alternate prefix or postfix operator that would pass muster, due to ‘!’ already meaning the appropriate thing in so many languages, and swift only supporting symbolic operators.</div><div class=""><br class=""></div><div class="">I can’t think of a method on boolean which would read properly either, e.g.</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre">        </span>if isValid.not() {…}</div><div class=""><br class=""></div><div class="">The closest I could think to a decent bike shed color would be a global function:</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre">        </span>if not(isValid) {…}</div><div class=""><br class=""></div><div class="">-DW</div><div class=""><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Feb 15, 2017, at 11:10 AM, Robert Widmann via swift-evolution <<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="content-type" content="text/html; charset=utf-8" class=""><div dir="auto" class=""><div class="">So you've identified the problem, but what do you propose as a solution here? </div><div class=""><br class=""></div><div class="">It should be noted that a (non-stdlib) language-level answer to this question has already been discussed and rejected (<a href="https://lists.swift.org/pipermail/swift-evolution/2015-December/000032.html" class="">https://lists.swift.org/pipermail/swift-evolution/2015-December/000032.html</a>).</div><div class=""><br class=""><div class="">~Robert Widmann</div></div><div class=""><br class="">2017/02/15 9:02、Sadiq via swift-evolution <<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>> のメッセージ:<br class=""><br class=""></div><blockquote type="cite" class=""><div class=""><div dir="ltr" class="">Hello,<div class=""><br class=""></div><div class="">I would like to suggest to change Logical NOT Operator from ! to something else. </div><div class="">It will increase the readability of the code and will avoid any confusion with the symbol used for force unwrapping of optional values. </div><div class="">It would be easier for new programmers to learn Swift as the first language. </div><div class="">I don't understand the rational behind using the same operator for two different purposes. </div><div class=""><br class=""></div><div class="">Thanks and Regards,</div><div class="">Mohammad Sadiq</div></div>
</div></blockquote><blockquote type="cite" class=""><div class=""><span class="">_______________________________________________</span><br class=""><span class="">swift-evolution mailing list</span><br class=""><span class=""><a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a></span><br class=""><span class=""><a href="https://lists.swift.org/mailman/listinfo/swift-evolution" class="">https://lists.swift.org/mailman/listinfo/swift-evolution</a></span><br class=""></div></blockquote></div>_______________________________________________<br class="">swift-evolution mailing list<br class=""><a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-evolution<br class=""></div></blockquote></div><br class=""></div></div></body></html>