Operator (computer programming): Difference between revisions

Content deleted Content added
Line 79:
| [[ALGOL 68]] <small>each symbolic operator has an alphanumeric equivalent and some a non-[[ASCII]] equivalent</small>
| {{mono|1=+* ** * / % %* %× - + &lt; &lt;= >= > = /= & -:= +:= *:= /:= %:= %*:= +=: :=: :/=:}}
(non-ASCII:)
{{mono|1=¬ +× ⊥ ↑ ↓ ⌊ ⌈ × ÷ ÷× ÷* □ ≤ ≥ ≠ ∧ ∨ ×:= ÷:= ÷×:= ÷*:= %×:= :≠:}}
| {{mono|not abs arg bin entier leng level odd repr round shorten i shl shr up down lwb upb lt le ge gt eq ne and or over mod elem minusab plusab timesab divab overab modab plusto is {{Not a typo|isnt}}}}
Line 93:
| [[APL (programming language)|APL]]
| {{mono|1=+ - × ÷ ⌈ ⌊ * ⍟ <nowiki>|</nowiki> ! ○ ~ ∨ ∧ ⍱ ⍲ &lt; ≤ = ≥ > ≠ . @ ≡ ≢ ⍴ , ⍪ ⍳ ↑ ↓ ? ⍒ ⍋ ⍉ ⌽ ⊖ ∊ ⊥ ⊤ ⍎ ⍕ ⌹ ⊂ ⊃ ∪ ∩ ⍷ ⌷ ∘ → ← / ⌿ \ ⍀ ¨ ⍣ & ⍨ ⌶ ⊆ ⊣ ⊢ ⍠ ⍤ ⌸ ⌺ ⍸}}
| ''Alphanumeric(alphanumeric symbols need a ⎕ prefix'')
| {{Yes}} <small>(first-order functions only)</small>
| {{Yes}}
Line 128:
|-
| [[C++]]
| ''Same(same as C'')
| ''Same(same as C plus'') {{mono|[[typeid]] [[new (C++)|new]] [[delete (C++)|delete]] [[Exception handling|throw]] [[decltype]] [[static_cast]] [[dynamic cast]] [[reinterpret_cast]] [[const_cast]]}}
| {{Yes}}
| {{Yes}}
Line 140:
|-
| [[C sharp (programming language)|C#]]
| ''Same(same as C plus) {{mono|[[?.]] ?[] [[Null coalescing operator|??]] <nowiki>??=</nowiki>}}
| {{mono|1=[[sizeof]] nameof new stackalloc await [[Exception handling|throw]] checked unchecked is as delegate default true false}} <br /> '''([[LINQ]]:''') {{mono|1=from select where group...by group...by...into join...in...on...equals join...in...on...equals...into orderby orderby...descending}} <br /> '''([[Roslyn (compiler)|Roslyn]]-only:''') {{mono|1=__makeref __refvalue __reftype}}
| {{Yes}}
| {{Yes}}
Line 152:
|-
| [[Java (programming language)|Java]]
| ''Same(same as C'')
| [[Java syntax#Instantiation|new]] [[Exception handling|throw]] [[instanceof]]
| {{Yes}}
Line 177:
| [[Haskell]]
| {{mono|1=+ - * / ^ ^^ ** == /= > < >= <= && <nowiki>||</nowiki> >>= >> $ $! . ++ !! :}} <small>Many more in common libraries</small>
| ''The (function name must be in backticks'')
| {{Yes}}
| {{Yes}}
Line 272:
| [[Smalltalk]]
| (yes - Up to two characters<ref name="BinaryMessages">{{cite web|first=Adele|last=Goldberg|url=http://stephane.ducasse.free.fr/FreeBooks/BlueBook/Bluebook.pdf|title=Smalltalk-80: The Language and its Implementation, p. 27, ISBN 0-201-11371-6}}</ref>)
| ''Alphanumeric(alphanumeric symbols need a colon suffix'')
| {{No}}
| {{Yes}}
Line 283:
|-
| [[Swift (programming language)|Swift]]
| Any(any Unicode symbol string except) {{mono|1=.}}, (including) {{mono|1=! ~ + - * / % =+ =- =* =/ =% &+ &- &* =&+ =&- =&* && <nowiki>||</nowiki> << >> & <nowiki>|</nowiki> ^ == != < <= > >= ?? ... ..<}} (in standard library)
| {{mono|1=is as as?}}
| {{Yes}}
Line 296:
| [[Visual Basic .NET]]
| rowspan="2" | {{mono|1=() . ! ?() ?. ?! + - * / \ & << >> < <= > >= ^ <> = += -= *= /= \= &= ^= <<= >>=}}
| {{mono|1=New Await Mod Like Is IsNot Not And AndAlso Or OrElse Xor If(...,...) If(...,...,...) GetXmlNamespace(...) GetType(...) NameOf(...) TypeOf...Is TypeOf...IsNot DirectCast(...,...) TryCast(...,...) CType(...,...) CBool(...) CByte(...) CChar(...) CDate(...) CDec(...) CDbl(...) CInt(...) CLng(...) CObj(...) CSByte(...) CShort(...) CSng(...) CStr(...) CUInt(...) CULng(...) CUShort(...)}} <br /> '''([[LINQ]]:''') {{mono|1=From Aggregate...Into Select Distinct Where {{nowrap|<Order By>...[Ascending<nowiki>|</nowiki>Descending]}} Take {{nowrap|<Take While>}} Skip {{nowrap|<Skip While>}} Let Group...By...Into Join...On <Group Join...On...Into>}}
| {{Yes}}
| {{Yes}}