[{"data":1,"prerenderedAt":402},["ShallowReactive",2],{"navigation_docs":3,"-core-features-comment":198,"-core-features-comment-surround":397},[4,30,81,118,147,171,184],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":6},"Getting Started",false,"/getting-started","1.getting-started",[10,15,20,25],{"title":11,"path":12,"stem":13,"icon":14},"Introduction","/getting-started/introduction","1.getting-started/2.introduction","i-lucide-house",{"title":16,"path":17,"stem":18,"icon":19},"Installation","/getting-started/installation","1.getting-started/3.installation","i-lucide-download",{"title":21,"path":22,"stem":23,"icon":24},"Quick start","/getting-started/quickstart","1.getting-started/4.quickstart","i-lucide-code-xml",{"title":26,"path":27,"stem":28,"icon":29},"Troubleshooting","/getting-started/troubleshooting","1.getting-started/5.troubleshooting","i-lucide-wrench",{"title":31,"icon":6,"path":32,"stem":33,"children":34,"page":6},"Core Features","/core-features","2.core-features",[35,39,43,48,52,56,60,64,68,73,77],{"title":36,"path":37,"stem":38,"icon":24},"Main function","/core-features/main-function","2.core-features/1.main-function",{"title":40,"path":41,"stem":42,"icon":24},"Variables","/core-features/variables","2.core-features/2.variables",{"title":44,"path":45,"stem":46,"icon":47},"Comment","/core-features/comment","2.core-features/3.comment","i-lucide-hash",{"title":49,"path":50,"stem":51,"icon":24},"Conditionals","/core-features/conditionals","2.core-features/4.conditionals",{"title":53,"path":54,"stem":55,"icon":24},"Loops","/core-features/loops","2.core-features/5.loops",{"title":57,"path":58,"stem":59,"icon":24},"Functions","/core-features/functions","2.core-features/6.functions",{"title":61,"path":62,"stem":63,"icon":24},"Pointers","/core-features/pointers","2.core-features/7.pointers",{"title":65,"path":66,"stem":67,"icon":24},"Data types","/core-features/datatypes","2.core-features/8.datatypes",{"title":69,"path":70,"stem":71,"icon":72},"Operators","/core-features/operators","2.core-features/9.operators","i-lucide-percent",{"title":74,"path":75,"stem":76,"icon":24},"Literals","/core-features/a.literals","2.core-features/a.literals",{"title":78,"path":79,"stem":80,"icon":24},"Keywords","/core-features/b.keywords","2.core-features/b.keywords",{"title":82,"icon":6,"path":83,"stem":84,"children":85,"page":6},"Features","/features","3.features",[86,90,94,98,102,106,110,114],{"title":87,"path":88,"stem":89,"icon":24},"Const","/features/const","3.features/1.const",{"title":91,"path":92,"stem":93,"icon":24},"Define","/features/define","3.features/2.define",{"title":95,"path":96,"stem":97,"icon":24},"Enum","/features/enum","3.features/3.enum",{"title":99,"path":100,"stem":101,"icon":24},"Union","/features/union","3.features/4.union",{"title":103,"path":104,"stem":105,"icon":24},"Overloading","/features/overloading","3.features/5.overloading",{"title":107,"path":108,"stem":109,"icon":24},"Lambda","/features/lambda","3.features/6.lambda",{"title":111,"path":112,"stem":113,"icon":24},"Callback","/features/callback","3.features/7.callback",{"title":115,"path":116,"stem":117,"icon":24},"Auto","/features/auto","3.features/8.auto",{"title":119,"icon":6,"path":120,"stem":121,"children":122,"page":6},"Advance Features","/advance","4.advance",[123,127,131,135,139,143],{"title":124,"path":125,"stem":126,"icon":24},"Generic Type","/advance/generic-type","4.advance/1.generic-type",{"title":128,"path":129,"stem":130,"icon":24},"Errors","/advance/error","4.advance/2.error",{"title":132,"path":133,"stem":134,"icon":24},"Annotation","/advance/annotation","4.advance/3.annotation",{"title":136,"path":137,"stem":138,"icon":24},"Variadic Function","/advance/variadic-func","4.advance/4.variadic-func",{"title":140,"path":141,"stem":142,"icon":24},"Module","/advance/module-interface","4.advance/5.module-interface",{"title":144,"path":145,"stem":146,"icon":24},"Operator Overloading","/advance/operator-overloading","4.advance/6.operator-overloading",{"title":148,"icon":6,"path":149,"stem":150,"children":151,"page":6},"Struct","/struct","5.struct",[152,155,159,163,167],{"title":148,"path":153,"stem":154,"icon":24},"/struct/struct","5.struct/1.struct",{"title":156,"path":157,"stem":158,"icon":24},"Methods","/struct/methods","5.struct/2.methods",{"title":160,"path":161,"stem":162,"icon":24},"Init/Deinit","/struct/init-deinit","5.struct/3.init-deinit",{"title":164,"path":165,"stem":166,"icon":24},"Encapsulation","/struct/encapsulation","5.struct/4.encapsulation",{"title":168,"path":169,"stem":170,"icon":24},"Static","/struct/static","5.struct/5.static",{"title":172,"icon":6,"path":173,"stem":174,"children":175,"page":6},"Data Structures","/data-structure","6.data-structure",[176,180],{"title":177,"path":178,"stem":179,"icon":24},"Array","/data-structure/array","6.data-structure/array",{"title":181,"path":182,"stem":183,"icon":24},"Structural Type","/data-structure/strutural-type","6.data-structure/strutural-type",{"title":185,"icon":6,"path":186,"stem":187,"children":188,"page":6},"Standard Libraries","/stdlib","7.stdlib",[189,194],{"title":190,"path":191,"stem":192,"icon":193},"stdlib","/stdlib/stdlib","7.stdlib/stdlib","i-lucide-library-big",{"title":195,"path":196,"stem":197,"icon":24},"syscall","/stdlib/syscall","7.stdlib/syscall",{"id":199,"title":44,"body":200,"description":390,"extension":391,"links":392,"meta":393,"navigation":394,"path":45,"seo":395,"stem":46,"__hash__":396},"docs/2.core-features/3.comment.md",{"type":201,"value":202,"toc":388},"minimark",[203,215,232,239,245,342,384],[204,205,206,207,211,212,214],"p",{},"In computer programming, a comment is a human-readable note written in the source code, generally used as an explanation or a documentation. It  is specifically marked so that the compiler ignores it, meaning it has no effect on how the program runs. In cambo, comments are indicated by the ",[208,209,210],"code",{},"#"," prefix and entend to the end of the line. This means you can start writing a comment anywhere on a line, and everything that comes after ",[208,213,210],{}," is treated as part of the comment.",[216,217,222],"pre",{"className":218,"code":219,"language":220,"meta":221,"style":221},"language-kh shiki shiki-themes material-theme-lighter one-light one-dark-pro","# comment\n","kh","",[208,223,224],{"__ignoreMap":221},[225,226,229],"span",{"class":227,"line":228},"line",1,[225,230,219],{"class":231},"seacL",[204,233,234,235,238],{},"By design choice, the language only supports a single-line comment. And block comment or multi-line comment are not provided unfortunately. The reason why block comments are not supported is because they can be inserted in the middle of code on a single line (e.g., ",[208,236,237],{},"int /*comment*/ var = 0;",", in some languages), which can reduce readability. However, it's not possible to do so with a single-line comment.",[204,240,241],{},[242,243,244],"strong",{},"Example:",[216,246,248],{"className":218,"code":247,"language":220,"meta":221,"style":221},"# this is the main function, where code is executed\nint main(string args[]){\n\n  print(\"hello, world\\n\"); # comment # still a comment\n\n  return 0; # exit program with status 0 \n}\n",[208,249,250,255,280,287,315,320,336],{"__ignoreMap":221},[225,251,252],{"class":227,"line":228},[225,253,254],{"class":231},"# this is the main function, where code is executed\n",[225,256,258,262,266,270,274,277],{"class":227,"line":257},2,[225,259,261],{"class":260},"s8dPH","int",[225,263,265],{"class":264},"spnjr"," main",[225,267,269],{"class":268},"sM89C","(",[225,271,273],{"class":272},"sQsOY","string",[225,275,276],{"class":260}," args",[225,278,279],{"class":268},"[]){\n",[225,281,283],{"class":227,"line":282},3,[225,284,286],{"emptyLinePlaceholder":285},true,"\n",[225,288,290,293,295,299,303,307,309,312],{"class":227,"line":289},4,[225,291,292],{"class":264},"  print",[225,294,269],{"class":268},[225,296,298],{"class":297},"sVH1b","\"",[225,300,302],{"class":301},"spZWa","hello, world",[225,304,306],{"class":305},"scPpd","\\n",[225,308,298],{"class":297},[225,310,311],{"class":268},"); ",[225,313,314],{"class":231},"# comment # still a comment\n",[225,316,318],{"class":227,"line":317},5,[225,319,286],{"emptyLinePlaceholder":285},[225,321,323,326,330,333],{"class":227,"line":322},6,[225,324,325],{"class":272},"  return",[225,327,329],{"class":328},"sriKn"," 0",[225,331,332],{"class":268},"; ",[225,334,335],{"class":231},"# exit program with status 0 \n",[225,337,339],{"class":227,"line":338},7,[225,340,341],{"class":268},"}\n",[343,344,345,348],"tip",{},[204,346,347],{},"As a good practice, comments should be used in the following cases:",[349,350,351,358,364,378],"ul",{},[352,353,354,357],"li",{},[242,355,356],{},"Explanation",": Clarifies the why behind very complex logic or implementation decisions.",[352,359,360,363],{},[242,361,362],{},"Documentation",": Provides metadata or detailed information about specific code.",[352,365,366,369,370,373,374,377],{},[242,367,368],{},"Task Tracking",": Mark areas that require future work, commonly using tags such as ",[208,371,372],{},"# TODO:"," or ",[208,375,376],{},"# FIXME:",".",[352,379,380,383],{},[242,381,382],{},"Debugging",": Temporarily disable specific lines of code by commenting them out without removing them.",[385,386,387],"style",{},"html pre.shiki code .seacL, html code.shiki .seacL{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#A0A1A7;--shiki-default-font-style:italic;--shiki-dark:#7F848E;--shiki-dark-font-style:italic}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .s8dPH, html code.shiki .s8dPH{--shiki-light:#90A4AE;--shiki-default:#E45649;--shiki-dark:#E06C75}html pre.shiki code .spnjr, html code.shiki .spnjr{--shiki-light:#6182B8;--shiki-default:#4078F2;--shiki-dark:#61AFEF}html pre.shiki code .sM89C, html code.shiki .sM89C{--shiki-light:#90A4AE;--shiki-default:#383A42;--shiki-dark:#ABB2BF}html pre.shiki code .sQsOY, html code.shiki .sQsOY{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#A626A4;--shiki-default-font-style:inherit;--shiki-dark:#C678DD;--shiki-dark-font-style:inherit}html pre.shiki code .sVH1b, html code.shiki .sVH1b{--shiki-light:#39ADB5;--shiki-default:#50A14F;--shiki-dark:#98C379}html pre.shiki code .spZWa, html code.shiki .spZWa{--shiki-light:#91B859;--shiki-default:#50A14F;--shiki-dark:#98C379}html pre.shiki code .scPpd, html code.shiki .scPpd{--shiki-light:#90A4AE;--shiki-default:#0184BC;--shiki-dark:#56B6C2}html pre.shiki code .sriKn, html code.shiki .sriKn{--shiki-light:#F76D47;--shiki-default:#986801;--shiki-dark:#D19A66}",{"title":221,"searchDepth":257,"depth":257,"links":389},[],"Comment your beautiful code!","md",null,{},{"icon":47},{"title":44,"description":390},"tWfbGJ4CQBoZqNrY4IdVhC0CZYPCT0k9PVMaN5hw8y0",[398,400],{"title":40,"path":41,"stem":42,"description":399,"icon":24,"children":-1},"Learn about variables in Cambo.",{"title":49,"path":50,"stem":51,"description":401,"icon":24,"children":-1},"Everything you need to know about conditional statements in Cambo.",1774971227270]