Operator (computer programming): Difference between revisions

Content deleted Content added
Added reference to Perl 6
Added PHP operators
Tags: nowiki added references removed
Line 152:
| {{No}}
|-
| [[Seed7PHP]]
| {} [] -> ** ! ++ -- ~ @ ! * / % + - . << >> &< ><= <nowiki>|</nowiki >= == <>!= >=== >!== <> <=> & ^ <nowiki>|</nowiki> && <nowiki>||</nowiki> ?? [[?:]] = +:= -:= *:= **= /:= <<:.= %= &= <nowiki>|=</nowiki>: ^= &:<<= @:>>=
| clone new unset print echo isset [[instanceof]] [[Logical conjunction|and]] [[Logical disjunction|or]] [[Exclusive or|xor]]
| conv varConv parse [[Complex conjugate|conj]] [[Integer division#Division of integers|div]] [[Remainder|rem]] [[Modulo operation|mdiv]] [[Modulo operation|mod]] times mult in [[Negation#Programming|not]] [[Logical conjunction|and]] [[Logical disjunction|or]] digits lpad rpad lpad0
| {{Yes}}
| {{Yes}}
| {{Yes}}
| {{Yes}}
| {{Yes}}
Line 163 ⟶ 160:
| {{Yes}}
| {{Yes}}
| {{No}}
| {{No}}
| {{No}}
|-
| [[Eiffel (programming language)|Eiffel]]
Line 188:
| {{Yes}}
|-
| [[LispEiffel (programming language)|LispEiffel]]
| [] + - * / // = /=
| Lisp defines all functions and symbols as operators.<ref name="LispOperators">{{cite web|url=http://clhs.lisp.se/Body/26_glo_o.htm#operator|title=The Common Lisp HyperSpec}}</ref> Following the definition in this page, Lisp has no operators.
| not and or implies "and then" "or else"
|
| {{Yes}}
| {{Yes}} <small>(operators are regular functions)</small>
| {{NoYes}}
| {{No}}
| {{No}}
| {{No}}
| {{No}}
| {{Yes}}
| {{Yes}}
| {{No}}
| {{Yes}}
| {{Yes}}
| -
| [[Seed7]]
| {} [] -> ** ! + - * / << >> & >< <nowiki>|</nowiki> = <> > >= < <= <& := +:= -:= *:= /:= <<:= >>:= &:= @:=
| conv varConv parse [[Complex conjugate|conj]] [[Integer division#Division of integers|div]] [[Remainder|rem]] [[Modulo operation|mdiv]] [[Modulo operation|mod]] times mult in [[Negation#Programming|not]] [[Logical conjunction|and]] [[Logical disjunction|or]] digits lpad rpad lpad0
| {{Yes}}
| {{Yes}}
| {{Yes}}
| {{Yes}}
| {{Yes}}
| {{Yes}}
| {{Yes}}
| {{Yes}}
|-