Re: INSPECT and TRAILING syntax



Pete,
I know that Chuck has responded to a couple of the specifics, but as I agree
with his initial post, I think what was not clear was that the "resistance" to
adding new (redundant) syntax is a POST-2002 (somewhat in that too) development.

The 2002 Standard introduced LOTS and LOTS (too much IMHO) new "syntax" - some
for things one could already do, some they couldn't.

Rightly or wrongly (I think rightly) SOME of the resistance to implementing the
'02 Standard was that it was simply "TOO BIG".

The features that you mention were all introduced in the '85 Standard or
earlier.

The '02 Standard had SOME new "redundant" features (e.g. GOBACK, partial-word
replacement, SET TO FALSE). However, it is my memory that even in the
development of that Standard there was SOME discussion that these facilities
COULD already be accomplished and did the language really need them. In these 3
cases (and possibly most others), the view was (as I recall it) that the new
syntax was "more self-documenting". I am not at all certain that ANY of them
would make it into a post-02 Standard - if they were up for discussion now.
Having said that, I do think that every possible enhancement has (and continues
to be) considered on a "case by case" basis. A (well-discussed in this forum)
feature was the addition of the "<>" operator - which DID make it into the draft
'08 Standard.


--
Bill Klein
wmklein <at> ix.netcom.com
"Pete Dashwood" <dashwood@xxxxxxxxxxxxxx> wrote in message
news:4ce5dlF15a7qgU1@xxxxxxxxxxxxxxxxx

"Chuck Stevens" <charles.stevens@xxxxxxxxxx> wrote in message
news:e3q4le$1lf5$1@xxxxxxxxxxxxxxxxxxxxxxx
Yes, as I recall it J4 was of the opinion that anything you'd want to do with
TRAILING you could accomplish with existing syntax, even if it required a
"temporary" and an extra statement.

Adding new syntax for functionality that already exists -- particularly when
the syntax for that functionality is pretty straightforward -- adds
complexity to the language without adding functional feature content, and for
that reason the suggestions to provide TRAILING were not followed.

Interesting.

That being the case...

Why was EVALUATE added to the language when IF was already there?

Why was SEARCH added when the same effect could be obtained with PERFORM?

Why was EXAMINE dropped in favour of INSPECT when they provide the same
functionality?

Why were scope delimiters added when we already had full stops?

Why was CONTINUE included when EXIT would have done?

Why was PICTURE provided in the langage when exactly the same functionality
was available with CLASS, and SIZE?

So much rhetoric, so little time... :-)

Pete.











.



Relevant Pages

  • Re: New bytecode assembly language to play with
    ... language that looks familiar, something I could probably figure out quite ... about a bit of superficial syntax here. ... The wheel has been reinvented several times. ... one that introduces new functionality, i.e. it's not just another way ...
    (comp.lang.misc)
  • Special symbols again (was Re: The problem with "as")
    ... >>into the language, it's a standard syntax, so marking it with a symbol ... Singling out syntax as non-basic makes it ... is successful, it's no longer a modification, it's a basic syntax now, ...
    (comp.lang.python)
  • Re: CRT and Win32 SDK
    ... OP's confusion is that the C runtime library is part of the language ... It is part of the language standard, ... Double huh. ... operating system to implement some functionality that the runtime library ...
    (microsoft.public.vc.language)
  • Re: Registering Event Handlers in C# vs. VB .NET
    ... entirely different syntax to do so from the syntax offered up as the basic ... It will be up to the client to ... as "using" that abstract a feature into a new language construct, ... user can still get at this language functionality in other ways. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: [C] how to handle command line arguments?
    ... arguments as some type of language and then write a small parser to handle ... argument syntax is that complex, then I'd be inclined to pass them off ... to a lex/yacc built parser. ... because it is only standard for programs that use getopt!). ...
    (comp.programming)