Stream: beginners

Topic: lack of section comment


view this post on Zulip Artur Swiderski (Apr 21 2023 at 16:17):

Lack of this capability is damaging. Sometimes when I try to figure out what is wrong I have to comment huge section of code, lack of this simple capability seems weird

view this post on Zulip Anton (Apr 21 2023 at 17:46):

I can see how that can be annoying. Multiline comments are not possible because we want people to be able to use roc programs as scripts, so you can run them with ./script.roc, which means all commented out lines need to start with #. Most editors have a shortcut like Ctrl+/ on vscode to comment out your whole selection but I'm not sure if your editor will know to use the # when you press the shortcut in a roc file.


Last updated: Jul 06 2025 at 12:14 UTC