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; there would be a new keyword -- for these compiled comments. This would match with Lua and also represent the line going out to the comments in the Scratch editor. 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 using an RGBA hex format.
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; there would be a new keyword--for these compiled comments. This would match with Lua and also represent the line going out to the comments in the Scratch editor. 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 using an RGBA hex format.