Single line / trailing comments

Denoted by //.

1// hello there!
2foo // this is a trailing comment

Docstrings

We have no special syntax for docstrings. Instead, we use comments. Eventually, we’ll support a /// syntax for docstrings which will also be used for generating documentation in baml_client.

Comments in block strings

See Block Strings for more information.

1#"
2 My string. {#
3 This is a comment
4 #}
5 hi!
6"#