develooper Front page | perl.perl6.language.mlc | Postings from August 2000

Re: Recording what we decided *not* to do, and why

Thread Next
Glenn Linderman
August 7, 2000 13:08
Re: Recording what we decided *not* to do, and why
Message ID:
John Porter wrote:

> Glenn Linderman wrote:
> >
> > When using an inline comment, I want to spend my character budget mostly
> > on the comment, and just enough on the delimiters to see it
> > effectively.  #< magic here ># would do quite nicely
> >
> > When reading a script, I'd like to be able to quickly distinguish the
> > comments using my eyeballs and brain, without the need to involve my
> > fingers and editor....
> Bogus arguments both, at least wrt #<...># vs qc<...>.
> Same number of characters overhead, same LACK of obviosity to the eyeball.

We can agree on the same number of characters overhead.  My comment
#< ... ># characters were intended to address comparisons with things
using "#<<token ... token" in an in-line fashion, not as comparison with

Regarding obviosity, # end-of-line comments already exist and the
eyeball has
become trained to consider them as comments... for many years of shell,
hosts file, etc. usage, long before Perl, the eyeball has learned to
pick out
# to mean beginning of comment.  #< (or the like, any bracket character,
with deference to the multitudes of C and Pascal programmers, even the
character, as in "#*...*#") is a simple extension to #, and, by use of a
bracket character (or *), implies there will be an end.

qc<...> clearly raises the expectation of bracketing, but builds on
no semantics with respect to commenting.  Rather, it builds on the
of quoting, so the eyeballs wouldn't detect it as a comment, and the
would wonder what kind of quoting this should be.  Eventually, no doubt,
brain would catch on, but it would always remain confusing to the
eyeballs, as
the "qc" sequence could so easily be found in other, non-comment

While the "#" character is legal to use for other syntactical purposes
in Perl
(any place that "any character" is permitted, for example, q#...#, the
availability of so many other characters to fill that bill causes me to
using # in those situations.  The only situation in which I use
non-comment-introducing "#" characters in my scripts are within quoted
strings, where the "#" is required to appear for the purpose of the
This encourages the eyeballs to retain their "# as comment" scanning

There  are two kinds of people, those
who finish  what they start,  and  so
on...                 -- Robert Byrne

Why pay for something you could get for free?
NetZero provides FREE Internet Access and Email

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About