Denoted by //.
//
1// hello there!2foo // this is a trailing comment
To add a docstring to any block, use ///.
///
1/// This is a docstring for a class2class Foo {3 /// This is a docstring for a property4 property1 string5}
Docstrings in BAML code will be carried through to generated types. They are not forwarded to the LLM through prompts.
See Block Strings for more information.
1#"2 My string. {#3 This is a comment4 #}5 hi!6"#