Multi line comments in ruby

Hi,

some time (years :wink: ago there was a discussion about multi line comments
in ruby on this list. I didn’t follow it completely, just found it in
news.google. There were sth. about 60 postings but AFAIK today (and it is
2 years later!) there is still no other way to make multi line comments
in ruby then the cumbersome

=begin

=end

block? Is this right, or have I simply missed something?

IMHO a simple c/c++ style comment

/*

*/

is missing in ruby!

Artur

···

Artur Merke
>>> artur.merke@udo.edu
(O-O)
_________________________.oo0–()–0oo.

“Artur Merke” merke@ls1.cs.uni-dortmund.de schrieb im Newsbeitrag
news:Pine.LNX.4.33.0311100952070.17966-100000@as0203.cs.uni-dortmund.de

Hi,

some time (years :wink: ago there was a discussion about multi line
comments
in ruby on this list. I didn’t follow it completely, just found it in
news.google. There were sth. about 60 postings but AFAIK today (and it
is
2 years later!) there is still no other way to make multi line comments
in ruby then the cumbersome

=begin

=end

block? Is this right, or have I simply missed something?

IMHO a simple c/c++ style comment

/*

*/

is missing in ruby!

Personally I don’t miss it since I don’t find =begin =end tedious. As far
as I remember there was some problem with the language syntax that
prevented usage of /* */. And, after all: Ruby != C… :slight_smile:

Regards

robert
  • Artur Merke; Mon, 10 Nov 2003 10:28:17 +0100

some time (years :wink: ago there was a discussion about multi line comments
in ruby on this list. I didn’t follow it completely, just found it in
news.google. There were sth. about 60 postings but AFAIK today (and it is
2 years later!) there is still no other way to make multi line comments
in ruby then the cumbersome

=begin

=end

Here’s an evil hack that you should not use:

=<<
This
is
a
multiline
pseudo-comment

···

_

Josef ‘Jupp’ Schugt

“Josef ‘Jupp’ Schugt” jupp@gmx.de schrieb im Newsbeitrag
news:bop7am$1hbu6a$1@ID-53633.news.uni-berlin.de

  • Artur Merke; Mon, 10 Nov 2003 10:28:17 +0100

some time (years :wink: ago there was a discussion about multi line
comments
in ruby on this list. I didn’t follow it completely, just found it in
news.google. There were sth. about 60 postings but AFAIK today (and
it is
2 years later!) there is still no other way to make multi line
comments
in ruby then the cumbersome

=begin

=end

Here’s an evil hack that you should not use:

I’m wondering why you present it. Isn’t that contradictory?
:slight_smile:

robert

Hi!

  • Robert Klemme; 2003-11-17, 14:18 UTC:

“Josef ‘Jupp’ Schugt” jupp@gmx.de schrieb im Newsbeitrag
news:bop7am$1hbu6a$1@ID-53633.news.uni-berlin.de

Here’s an evil hack that you should not use:

I’m wondering why you present it.

Because it exists.

Isn’t that contradictory?

No, I say one should not use it as in ‘refrain from using it unless
you precisely know what you are doing’ (the RFC SHOULD that is :-).

Josef ‘Jupp’ Schugt

···


.-------.
message > 100 kB? / | |
sender = spammer? / | R.I.P.|
text = spam? / | |