<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="">I have filed a bug:&nbsp;<a href="https://bugs.swift.org/browse/SR-3104" class="">https://bugs.swift.org/browse/SR-3104</a><div class=""><br class=""><div style=""><blockquote type="cite" class=""><div class="">Am 01.11.2016 um 18:08 schrieb Toni Suter via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>&gt;:</div><br class="Apple-interchange-newline"><div class=""><div class="">Oh, I didn't see that, thanks! I'll write a bug report. <br class=""><br class=""><blockquote type="cite" class="">Am 01.11.2016 um 17:52 schrieb Alex Martini &lt;<a href="mailto:amartini@apple.com" class="">amartini@apple.com</a>&gt;:<br class=""><br class=""><br class=""><blockquote type="cite" class="">On Nov 1, 2016, at 7:23 AM, Toni Suter via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>&gt; wrote:<br class=""><br class="">In Swift 3, I can declare a postfix operator that starts with a ? or a !, but as far as I can tell, there's no way to actually use such an operator:<br class=""><br class="">I think it would probably be best to disallow postfix operators that start with a question mark or an exclamation mark.<br class="">At the moment it is possible to declare them, but not to use them. That's not very user-friendly. <br class=""></blockquote><br class=""><br class="">This looks like a bug — the documentation and the behavior disagree. &nbsp;The docs say:<br class=""><br class=""><blockquote type="cite" class="">Although you can define custom operators that contain a question mark (?), they can’t consist of a single question mark character only. Additionally, although operators can contain an exclamation mark (!), postfix operators cannot begin with either a question mark or an exclamation mark.<br class=""></blockquote><br class=""><a href="https://developer.apple.com/library/content/documentation/Swift/Conceptual/Swift_Programming_Language/LexicalStructure.html#//apple_ref/doc/uid/TP40014097-CH30-ID418" class="">https://developer.apple.com/library/content/documentation/Swift/Conceptual/Swift_Programming_Language/LexicalStructure.html#//apple_ref/doc/uid/TP40014097-CH30-ID418</a><br class=""><br class=""></blockquote><br class="">_______________________________________________<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></div></blockquote></div><br class=""></div></body></html>