David A. Black wrote:
> Hi --
> 
> On Mon, 31 Jan 2005, Aredridel wrote:
> 
>> On Fri, 2005-01-28 at 13:35 +0900, Navindra Umanee wrote:
>>
>>> Zach Dennis <zdennis / mktec.com> wrote:
>>>
>>>>   - you can use string interpolation, ex: "x: #{@myvar}" instead of
>>>> having to say "x:" + myvar'
>>>
>>>
>>> Ruby seems to lose here.  The syntax #{@myvar} is a rare case of
>>> ugliness.
>>
>>
>> Ugly for that case. Gorgeous for the #{myvar.upcase} case, I think.
> 
> 
> Indeed.  And the realization that Ruby's interpolation goes beyond
> variables, and that the "extra" symbols aren't extra, is one of the
> traditional rites of passage :-)

Let's also bear in mind that when there is an @ or a $ starting a variable
name (not an expression), the brackets are optional:

    "x: #@myvar"



Hal