Operators - xkp/Doc GitHub Wiki

The list:

+ - / * %
++ --
! == != > < >= <= && ||
as is has
[]
= += -= *= /= 
>> <<
&

Peculiarities:

as

Typecast operator

var a = 10;
int b = a as int;

failure to cast will result in null

is

Typequery operator

if (foo is int)
{
    do_magic();
}

has

Queries where a specific string represents a method or a property of certain object

if (foo has "do_magic")
{
    foo.do_magic();
}

+= -=

Aside of their normal arithmetic function, they're used to modify arrays

array<int> bar = [];
bar += 3;

&

Reserved

⚠️ **GitHub.com Fallback** ⚠️