Skip to main content
FunC supports both single-line and multi-line comments. Single-line comments start with ;; (double semicolon). Example:
Multi-line comments begin with {- and end with -}. Unlike other languages, FunC allows nested multi-line comments. Example:
Additionally, single-line comments ;; can appear inside multi-line comments, and they take precedence over multi-line comments {- -}. In the following example:
Here, const a = 10; is inside a multi-line comment and is effectively commented out.