Re: using function names as variable names? Is it Justified?

From: Ingvar (ingvar_at_hexapodia.net)
Date: 11/29/04


Date: 29 Nov 2004 14:13:17 +0000

Surendra Singhi <efuzzyone@netscape.net> writes:

> Kaz Kylheku wrote:
> > Surendra Singhi <efuzzyone@netscape.net> wrote in message news:<cobcfl$j2l$3@news.asu.edu>...
> >
[ SNIP ]
> >> I have seen a couple of discussions on this earlier, but don't you
> >> feel it is confusing and error prone to use such names as
> >> variables.
> > Some of us think rather than feel. Yes, it can be confusing to have
> > the same symbol refer to different things in the same vicinity. That
> > isn't a good enough reason to drive it out of the language.
> > It's the very essence of a symbol that it can be overloaded with
> > contexts that give it a different meaning.
[ SNIP ]
> > The confusion here could be only in the mind of someone who doesn't
> > understand the different meaning of the first position of an
> > expression.
> >
> Then you may as well say that syntax highlighting is not needed.

I, personally, find it more distracting than helpful. Especially with
(some) programming languages, where existing highlighting methods
(occasionallY) produce incorrectly-hightlighted code.

I always switch highlighting off, as soon as I figure out how to, in
all editors I work with.

//Ingvar

-- 
"No. Most Scandiwegians use the same algorithm as you Brits.
 "Ingvar is just a freak."
Stig Morten Valstad, in the Monastery


Relevant Pages

  • Re: strlen(), K+1: clarification
    ... objects that did not overlap 100%. ... the behavior of memcpy and confusing && and || under pressure, ... three multiple choice answers at once, ...
    (comp.programming)
  • Re: Great SWT Program
    ... highlighting in multiple colours. ... I just tried this (ssh from one Linux machine to another, ... from one of the Linux virtual consoles), and syntax highlighting ...
    (comp.lang.java.programmer)
  • Re: Regular Expressions
    ... And this would be the confusing, fragile mess I spoke of. ... but bad here because we know the expected format of the date and the ...
    (perl.beginners)
  • Re: Flat Earth Theory To Be Taught In Science Classes
    ... your confusing your groups ... > The "Big Bang" is false because it doesn't explain what was before the ... > Intelligent design as it has been presented is incompatible with more than ...
    (rec.woodworking)
  • Re: Doubts about pointers
    ... Nick Keighley wrote: ... excellent but it doesn't mention near and far pointers at all. ... them quite confusing, so I think any book should explain them clearly. ...
    (comp.lang.c)