----- Original Message ----- From: <dblack / candle.superlink.net> To: "ruby-talk ML" <ruby-talk / ruby-lang.org> Sent: Monday, February 24, 2003 8:48 AM Subject: Re: Coding challenge: Space-separated constants > > > What about #{}? > > > > Good question. My hesitant response is no. > > > > I am thinking of this as a data format. So > > there should be no variables used -- nothing > > that would require the presence or maintenance > > of a certain context. > > > > But what about something like #{rand} or > > #{Time.now}? Truthfully I haven't thought > > about it. > > Presumably they would be inside quotation marks: > > str = '123 4.5 "#{rand}" "and so on"' > > so if your solution is eval-based, the interpolation should just sort > of happen. Surely. As long as illegal things such as "#{undefinedvar}" are caught and handled appropriately. Whatever that means. Hal