Skip to content

Keywords and Operators

matt edited this page May 30, 2019 · 16 revisions

Keywords

package import foreign
when if else for defer return switch case in notin do break continue fallthrough
proc struct union enum bit_field bit_set map dynamic
cast auto_cast transmute
using
inline no_inline
context
size_of align_of offset_of type_of

distinct opaque

Reserved keywords

macro const

Operators

= ! ^ ? :
+ - * / % %% & | ~ &~ << >>
&& ||
+= -= *= /= %= %%= &= |= ~= &~= <<= >>=
&&= ||=
-> <- ---
== != < > <= >=
( ) [ ] { }
: .. ..<
# @ $
; . ,

Reserved Operator

=>

Clone this wiki locally