Skip to content

Keywords and Operators

Mikkel Hjortshøj edited this page Nov 12, 2017 · 16 revisions

Keywords

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

Reserved keywords

macro static asm yield await

Operators

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

Reserved Operator

=>

Clone this wiki locally