#multi-line comments in assembly editor
1 messages · Page 1 of 1 (latest)
What is the problem with multiple single line comments? Multi line comments are pretty much always a bad idea
just giving ideas
Why are they bad? If I need to type paragraphs I don't want to have to fiddle with comment marks on each line. IDEs can automate that, but I think that might be out of scope for this game.
^
They are really hard to parse and make consitent, especially if string literals exist
Especially if they are also somewhat supposed to be used to commenting out code
So /* "*/" */ would not do what one might expect when trying to commenting out the block of code
Also, adding a single # at the start of each line isn't that much effort
And yes, I would prefer the in game IDE to be updated with some kind of comment out this line. The IDE will almost certainly will have to be improved in a few ways when the assembler is updated
double ## can represent multi-line comment
Sure, but exact syntax doesn't matter the problem still exist
okay
I agree that multiline likely isn't necessary, but it's easy enough to avoid the one example provided - just require the ml start indicator to be the first thing on a line
So you can make block comments but not embedded ones
Some languages only have block comments and don't support line comments
Never heard of an assembler like that though
That doesn't work with multiline strings like the TC assembler currently supports