Ternary conditional operator: Difference between revisions

Content deleted Content added
Go: +ref
m merge two refs
Line 406:
 
===Go===
There is no ternary if in [[Go (programming language)|Go]], so use of the full if statement is always required.<ref>{{Cite web |titlename=Frequently Asked Questions (FAQ) |url=https://"go.dev/doc/faq#Does_Go_have_a_ternary_form |website=The Go Programming Language}}<-ternary"/ref>
 
===Haskell===
Line 944:
 
* [[CoffeeScript]]
* [[Go (programming language)|Go]] programming language<ref name="go-ternary">{{cite web |url= httphttps://golanggo.orgdev/doc/go_faq.htmlfaq#Does_Go_have_a_ternary_form |work= The Go Programming Language FAQ |title= Does Go have the ?: operator? |access-date= 2012-08-05}}</ref>
* [[MATLAB]]
* [[Pascal (programming language)|Pascal]] although [[Object Pascal|Object Pascal / Delphi]] do have a function {{code|IfThen}} to do the same (with caveats)