Currently, in goboscript, comments are removed at compile time, similar to other languages. However, since Scratch has a built-in comment feature, it would be nice to let users generate their own comments automatically.
Comments using # would still be ignored when compiling; but two hashes in a row ## would be used for these compiled comments. For example:
Ignored comment:
move 10; # todo: let the user choose how much to move by?
Compiled comment:
proc draw_image input { ## Draws an image.
Currently, in goboscript, comments are removed at compile time, similar to other languages. However, since Scratch has a built-in comment feature, it would be nice to let users generate their own comments automatically.
Comments using
#would still be ignored when compiling; but two hashes in a row##would be used for these compiled comments. For example:Ignored comment:
move 10; # todo: let the user choose how much to move by?Compiled comment:
proc draw_image input { ## Draws an image.