Why we will use obj$func() often

Peter Hansen peter at engcorp.com
Fri Apr 23 16:58:45 EDT 2004


Mark Hahn wrote:

> "Mike C. Fletcher" <mcfletch at rogers.com> wrote ...
> 
> 
>>$ is basically a character as far as glyphs go, it's a
>>full-height glyph with ascenders and descenders, is very similar to a
>>capital S, and generally makes reading code much harder as it obscures
>>word-shape; .this or even self.this is much easier to read because you
>>can pick out the words using your learned vocabulary of word-shapes.
> 
> 
> Well I have a problem now.  I gave people on my mailing list a choice
> between $var, `var, ~var,  and ^var.  The current tally is four votes for
> $var and none for any of the others.  According to your criteria, $var is
> the worst and ~var should be the best.  Am I correct?

If I recall correctly, ObjectRexx uses ~ the way Python uses . (dot).
I wasn't really partial to it, but it didn't really stand in the way
of writing or reading the code.

I have to go with Mike on the problem with $ however...



More information about the Python-list mailing list