now there only seems two options left, and they are both constructions.
the construction just stated above (:=) or, and i think the proper way
to have done it, a prefix symbol for local variables.%localvariable = ‘i am me, not some method’
You’re kidding, right? I think one of the things that makes Perl so unreadable is the
amount of $$wildlife @growing %out[$of] =~ /the/ ${@writing} $! It’s nice the way ruby
doesn’t go over the top with it, and perhaps even at times uses it to improve readability.
no, if i were creating ruby now, i would very much consider doing that.
certainly it adds an extra char to all local vars, but it makes things
quite distinct.
unfortunately that’s just not going to go over well with the population
at large. and i can only wish that it was included early on. all
variables would have a prefix (%, @, @@, $) and methods would not, Ruby
might be a tad faster, and our conversation would never had to exist.
I’d say locals don’t use prefixes (prefices?) since locals are (one of) the most common
identifiers used, and that sort of junk ought to be minimized.
do you consider @, @@, and $ junk?
you know other languages have commands to specify the access level of
variables. so you can’t tell the difference just by looking at them. you
code something like ‘global avar’ or ‘public avar’.
I’d personally rather lose the o.member = ‘something’ notation for method calling. As
David Alan Black mentioned:Isn’t it good to have to know when you’re calling a method and when
you’re assigning to a local variable
so you think writer methods are the problem? what would they be replaced
with?
Anyhow, I wouldn’t consider anything backward-incompatible likely to be worthy of
Rubydom.
nor would i, well, unless it was really really good.
···
On Sat, 2002-08-10 at 04:06, George Ogata wrote:
–
~transami