-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
multiline comments: #= ... =# #6129
Conversation
Shamelessly ripping off @stevengj's code.
Great, now we have to follow discussions in three issues and two PRs. |
|
There's a tradition for all multiline comment discussions to be a complete disaster. |
Honestly, I'm ok with your PR too, I just wanted to put an alternative out there as well. If we're going to do |
But will editor's automatically match the |
We may have to put this to a vote à la kittenwar. |
@karbarcca, I'm not concerned about whether you have to type the (And yes, some editors are programmable enough that they could be programmed to do something like brace matching for |
@StefanKarpinski, I think it would be crazy to introduce multiple multiline-comment syntaxes. Pascal has both The current proposals already support nesting. And with brace matching, it is easy to figure out which nested braces go together. |
Ah, that makes sense. Thanks. |
In that case, I'd mildly prefer |
And so the insanity begins again... |
Why is My reasoning for Furthermore,
at which point the parser barfs. Similarly (to a lesser degree) for |
The good news is that there are rational criteria here which have nothing to do with personal tastes. |
I find |
I'm not so much worried about typing Of course, any practical (Also, as a touch-typist I think you have a strange notion of what is easy to type. But we all know that you are twisted, Stefan. In any case, if you don't like typing |
To the contrary, I think it explains exactly why Julia is not in the curly-brace language family. You type a lot more blocks than Any-typed array literals. |
@pao, actually, if you grep the (Even if that weren't true, and it probably isn't true for interactive use, the fact remains that typing |
Ok, I for one am convinced by these arguments that |
Okay, in that case closing this issue so that technical implementation discussions can continue at #6128. |
I didn't realize you were going to take me so seriously; it was certainly not intended as direct comment on this issue. Sorry about that. (I forgot about type parameters; they kind of blend into the syntax.) |
This is a shameless rip-off of @stevengj's multiline comment p.r. – because I really like
#= ... =#
better :-)