注释

Felix 有两种注释。

C++ 注释

C++风格的注释开始于 // , 在行的末尾结束。

println$ "Hi"; // say Hi!

嵌套C注释

C风格的注释以 /* 以匹配的结尾 */ .

/* This is an introductory program,
   which says Hello!
*/
println$ "Hello"; /* Say it! */

与C注释不同,felixc风格的注释嵌套。注意隐藏在字符串文字中的导入或引出标记!

// a comment in C++ style
/* a C style comment
   /* nested comment */
   still commented
*/

嵌套注释通常用于临时删除代码:

/*
/* This is an introductory program,
   which says Hello!
*/
println$ "Hello"; /* Say it! */
*/
println$ "Bye";