Article View: comp.unix.shell
Article #4627Re: Gawk v24.7: Why Bother???
From: Larry Wall
Date: Wed, 19 Apr 1995 00:00
Date: Wed, 19 Apr 1995 00:00
44 lines
2402 bytes
2402 bytes
In article <HSU.95Apr17080522@shadows.cs.hut.fi>,
Heikki Suonsivu <hsu@cs.hut.fi> wrote:
:
: In article <niels.798025941@darwin> niels@darwin.life.uiuc.edu (Niels Larsen) writes:
: How about posting *widely* the question "what will gawk be able to do
: that Perl cannot do now?". That will be interesting for gawk people
: certainly, but maybe there are a couple of ideas that would improve
: Perl further.
:
: How about changing perl syntax to be more like awk or C? I $$mean @less
: $-signs = <and> &other *special \%characters?
Then it would be less like the shell. :-)
You'll be pleased to know that I've been trying real hard to get rid of
unnecessary punctuation in Perl 5. You'll be displeased to know that I
don't think noun markers like $ and @ unnecessary. Not only do they
function like case markers do in human language, but they are
automatically distinguished within interpolative contexts, and the user
doesn't have to worry about different syntactic treatments for variable
references within or without such a context.
But the & prefix on verbs is now optional, just as "do" is in English.
I do hope you do understand what I mean.
For example, you used to have to write this:
&california || &bust;
It can now be written more cleanly like this:
california or bust;
Strictly speaking, of course, $ and @ aren't case markers, but number
markers. English has mandatory number markers, and people get upset
when they doesn't agree.
It were just convenient in Perl (for the shellish interplative reasons
mentioned above) to pull the markers out to the front of each noun
phrase. Most people seems to like it that way. It certainly seem to
make more sense than putting them on the end, like most varieties of
BASIC does.
Larry
Technical Details
Message-ID:
<1995Apr19.232325.2528@netlabs.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<3mpj9f$d1h@csnews.cs.colorado.edu> <niels.798025941@darwin> <HSU.95Apr17080522@shadows.cs.hut.fi>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1012a6,4df32fd703a6b724 X-Google-Attributes: gid1012a6,public X-Google-Thread: 1025b4,4df32fd703a6b724 X-Google-Attributes: gid1025b4,public From: lwall@netlabs.com (Larry Wall) Subject: Re: Gawk v24.7: Why Bother??? Date: 1995/04/19 Message-ID: <1995Apr19.232325.2528@netlabs.com> X-Deja-AN: 101270485 references: <3mpj9f$d1h@csnews.cs.colorado.edu> <niels.798025941@darwin> <HSU.95Apr17080522@shadows.cs.hut.fi> organization: NetLabs, Inc., Los Altos, California. newsgroups: comp.unix.shell,gnu.misc.discuss