haasn / -g-pl

/g/ programming language
13 stars 2 forks source link

Multiline comments #1

Closed graydude closed 12 years ago

graydude commented 12 years ago

I'm not sure how to commit code to a public github repository without forking it, so I'll post this in the issues section (if someone want to explain how I should do it that would be great).

I read the draft, it looks great. Since we got rid of the ;'s to terminate a line, I'd like to introduce the (1/?) statement (Used when a post is to long for the text field and is continued later) to continue on the next line:

implying foo isn't "This is a string (1/?) the string continues here (2/?) and ends here"

The (n/?) statement would be removed by the compiler and the following new line would be inserted into the string instead of interpreted as the end of the statement.

I'm not sure if we should force the ? to actually mean something or have (n/n) on the last line.

I loved your addition of GNU/Linux to escape Linux on the code block by the way.

graydude commented 12 years ago

I figured it out, but some topics, like this one, aren't ready to be submitted yet (Unlike the switch one, on which we agreed yesterday) so should we discuss them here or somewhere else?

haasn commented 12 years ago

Discussing them here is fine. It's public and everybody can see changes and comment.

I'm not sure what the point of the (1/?) stuff would be. The way I see it, multi-line comments should be allowed implicitly, eg. in your example it would simply extend to multiple lines since the closing " is there.

It's not a bad suggestion per se though, we could use it elsewhere.