<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><blockquote type="cite" class=""><div class=""><div class="" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">I cannot think of a language where I don’t have ! as negate (which I read as not).</div></div></blockquote><br class=""></div><div>There’s Haskell, a language well endowed with cryptic operators, but not prefix <b class="">!</b>, it uses a ‘not’ function instead.</div><div><br class=""></div><div>You could do the same in Swift, should you wish:</div><div class=""><br class=""></div><div class="">func not(bool: Bool) -> Bool { return !bool }</div><div class=""><br class=""></div><div class="">And because in Swift, ‘if’ doesn’t require braces around the predicate, it doesn’t look too bad.</div><div class="">if not(x) { …</div><div class=""><br class=""></div></body></html>