Re: What's the deal with C99?



"Malcolm McLean" <regniztar@xxxxxxxxxxxxxx> writes:
"Keith Thompson" <kst-u@xxxxxxx> wrote in message
In my opinion, the best chance for the survival of C and for
widespread support for any new standard (note that these are two
different, but related, things) is for C to remain fairly minimalist.
If that makes it a niche language, rather than the universal
programming language it seemed to be a few decades ago, that's not
necessarily a bad thing. (I'm willing to radically change this
opinion at the slightest provocation.)

Of course, what should happen it that the next standard should include
the features *I* like, but reject all other new features in the
interests of simplicity. 8-)}

We need one programming language for everything except the nichiest of
niche areas. I've over twenty years programming
experience. Occasionally I have to knock up little Perl scripts. I
find myself puzzling over the Perl handbook trying to work out how to
break out of a loop, or how to sort a list of files by
suffix. Essentially Perl does these things in the same way as C, but
with tiny differences to make it look more like a Unix shell script,
or maybe just to be different to emphasise that it is not C. It's a
huge waste of time. As I said, this is someone with 20 years
experience who can't get his tool to sort files by suffix. However
useless the individual concerned, that would be unacceptable in any
other industry. You wouldn't tolerate eningeers being unable to
calculate bolt tolerances because someone had suddenly decided to use
a weird and wonderful new measuring system, or lawyers unable to read
new legislation because the Federal government had decided on
Latin. However we toleratye the same in software.

Both of these things are very straightforward in Perl, which is after
all a different language than C.

Realistically, we're a *long* way from being able to have a single
programming language for everything. Different languages have
different design philosophies; coherence of design within a language
is seen (rightly, in my opinion) as more important than syntactic
consistency across languages. Perl uses "last" rather than "break" to
break out of a loop; it goes along with "next" to quit the current
iteration and start from the top, like C's "continue". As for sorting
a list of files by suffix, the built-in "sort" operator makes that
quite straightforward, and quite similar to the way you'd do it in C
(write a comparison function that compares the two suffixes and pass
it to the built-in sort operator in Perl or the qsort() function in
C).

And if someday we do have a single universal programming language, I
somehow doubt that it's going to be C.

--
Keith Thompson (The_Other_Keith) <kst-u@xxxxxxx>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
.



Relevant Pages

  • Python 2nd favorite language in Linux Journal poll
    ... favorite programming language. ... In the 2005 poll, Python is 2nd, its ... three is Perl, while PHP slips to fourth place, closely followed by ... The voting was close this year, too; only 59 votes separated C ...
    (comp.lang.python)
  • Re: KBH Integer Sort
    ... limited to programming language integer ranges except when computational. ... Here is code that puts information about the a-array data into the c-array ... And that c-array code alone is the fundamental sort operation. ... matching memory structure to the data memory structure. ...
    (sci.math)
  • Re: revisiting web development in Perl...where to start?
    ... There's no trick to this -- you use a programming language to spit out ... ASP ... Seibel came out with a wildly popular book that touches on generating ... The Perl frameworks listed include Catalyst, Interchange, Mason, and ...
    (comp.lang.perl.misc)
  • Re: cgi_bin
    ... But he does not have a question about the Perl programming language, ... And neither is it about Perl. ... If I had asked on a newsgroup about web server configuration, I think I would have been less likely to get a helpful answer than I was here. ... actually caused by some regulars' disinterest in CGI and in giving those ...
    (comp.lang.perl.misc)
  • Re: The Problem with Perl
    ... Perl can't be parsed as a context-free grammar? ... usability of the programming language. ... Perl also has the concept of context pertaining to ...
    (comp.lang.perl.misc)