<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Am 18.04.2016 um 11:51 schrieb tuuranton--- via swift-users:<br>
<blockquote cite="mid:KFcm6wf--3-0@tutanota.de" type="cite">
<pre wrap="">Why does this compile?
let t1: Int? = 2print(t1 ?? "asdf")
</pre>
</blockquote>
Well, I guess you try to re-typedef (??) a language construct.<br>
According to NSHipster ?? is the languages <code>nil</code>
coalescing operator.<br>
<br>
So it simply compiles because t1 isn't nil.<br>
<br>
Further reference:<br>
<a class="moz-txt-link-freetext" href="https://en.wikipedia.org/wiki/Null_coalescing_operator#Swift">https://en.wikipedia.org/wiki/Null_coalescing_operator#Swift</a><br>
</body>
</html>