<br><br><div class="gmail_quote"><div dir="ltr">בתאריך יום ד׳, 29 בנוב׳ 2017, 11:46, מאת Steven D'Aprano <<a href="mailto:steve@pearwood.info">steve@pearwood.info</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Wed, Nov 29, 2017 at 09:14:12AM +0200, Serhiy Storchaka wrote:<br>
> 29.11.17 08:08, Steven D'Aprano пише:<br>
> >Perl is hardly the only language with null-coalescing operators -- we<br>
> >might better describe ?? as being familiar to C#, PHP, Swift and Dart.<br>
> >That's two mature, well-known languages and two up-and-coming languages.<br>
><br>
> What is the syntax of the ternary operator in these languages?<br>
<br>
All four use:<br>
<br>
condition ? first : second<br>
<br>
for the ternary if operator.<br></blockquote></div><div><br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"></blockquote></div><div>This suggests something like "ifNone" keyword :</div><div><br></div><div> x = a ifNone b ifNone c</div><div><br></div><div>Elazar</div>