On Thursday 19 June 2003 10:42 am, nobu.nokada / softhome.net wrote: > > 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 So it is... actually, I didn't know you could do that! > > 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." Well, yeah, but that's kind of cheating. ;) Anyway, I guess that one is out, but it would be nice if we could find something else that would work. =) -- Wesley J. Landaker - wjl / icecavern.net OpenPGP FP: C99E DF40 54F6 B625 FD48 B509 A3DE 8D79 541F F830