From: x1 Date: 2006-10-19T14:06:38+09:00 Subject: Re: My first feeling of Ruby I've never used it or new it existed and have now taken a note to watch out for it should I ever have #@something in a "string". Not that I know enough about ruby or development in general to speak on it's validity, however I would be interest in seeing the actual lines of code in the ruby source that checks the #@something syntax. Could someone share it if it's not too much trouble? Is the ruby logic something like this? if string contains "#@" and the text after the "@" (with some delimiter) prefixed with an "@" is a variable, interpret it?? I cant see anyway this is what's being done because it seems horible lol.. What does it actually do? Please share On 10/18/06, Phrogz wrote: > Trans wrote: > > Hal Fulton wrote: > > > Trans wrote: > > > > Also, I might suggest that matz/ruby do away with those shortcuts. > > > > > > Absolutely not. > > > > Becaue you like extraneous notations that are rarely used and > > subsequently create less readiable code? > > What evidence do you have to support the claim that they are rarely > used? Also, would you concede that "less readable code" is a subjective > criticism? > > I personally use #@foo for every (as far as I know) instance variable > I've included as a part of my own string interpolation code. > > >