From: David Corbin Date: 2002-02-03T07:52:04+09:00 Subject: Re: Variable types David Alan Black wrote: >Hello -- > >On Sun, 3 Feb 2002, David Corbin wrote: > >>I know I'm new to ruby, but I feel obligated to share my dislike for >>"special symbols" to indicate if a symbol is a member, local variable or >>global variable. Perhaps I don't know enough to make such a comment, >>and someone will show me my mistunderstanding. >> >>Anyone else think like I do? >> > >I sort of like $ for global variables because it makes it easy to >tell where you've used them and therefore need to rewrite your >code :-) > I can see this, but at the same time, it makes it harder refactor your code to get rid of it. I'd (personally) prefer some type of declaration that says "this symbols should be considered global", and the if someone is foolish enough to declare two symbols with similar names let the prefix be used to override it.... > >David >