From: nobu.nokada@... Date: 2003-06-20T01:42:20+09:00 Subject: Re: Multiline comments? Hi, At Tue, 17 Jun 2003 23:58:34 +0900, Wesley J. Landaker wrote: > > What do you expect from this? > > > > p //* 2 > > That's not much worse than what you'd get if you did that in C or C++, but > that's not saying much. ;) Well, it would not be worst, at least. > Anyway, I don't think /* ... */ fits well into Ruby's syntax, but what > about something like: %#{}? We have %w{}, %r{}, etc... seems like %#{} is > pretty intuitive. %# means a string literal delimted by #. puts %#{comment} or string? # {comment} or string? ==>nil > But then, it does conflict with #{} expansion in > strings, so I guess you'd have to say no comments inside of strings (which > seems reasonable--you can't currently put regular "#" comments in > strings). "Currently, string literal can contain #{# this is comment ''}comment." -- Nobu Nakada