From: Daniel Date: 2001-07-04T14:24:45+09:00 Subject: [ruby-talk:17217] Re: /* */ comments I never used =begin =end yet, but someone pointed out that they have to be at the beginning of the line *shrugs* -- DEV On Wed, 4 Jul 2001, Mark Slagell wrote: > Stephen White wrote: > > > > On Wed, 4 Jul 2001, Dave Thomas wrote: > > > > > Over on http://www.rubygarden.org, dv posted a patch to parse.y that > > > adds support for /* .. */ comments in Ruby. > > > > > > Waddya think? Good idea? Rebarbative C-ism? > > > > Rebarbative. With "#", comment blocks are easy enough already. > > > > # This is a comment block > > # which is very long and > > # doesn't say much > > > > vs > > > > /* This is a comment block > > which is very long and > > doesn't say much */ > > [snip...] > > > > The "#" just looks plain better. :) > > Sure. Though the question is always, what do we give up in order to make > some people more comfortable; sometimes it's considerable, but in this > case I don't think so. Since what /*...*/ gives is a way to mark a > comment block by its ends instead of continuously, it kind of duplicates > =begin...=end, but I think the latter is being discouraged for non-RD > use (right?) so /*...*/ is okay with me. > > Crazy thought: how would /#...#/ be instead? > > Mark >