Re: INSPECT and TRAILING syntax



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.

-Chuck Stevens

"William M. Klein" <wmklein@xxxxxxxxxxxxxxxxx> wrote in message
news:wqU7g.432129$7i1.140664@xxxxxxxxxxxxxxxxxxxxxxxxx
Roger (et al),
I think the thought is/was that "Function Reverse" lets you do much of
this (not REPLACING or CONVERTING - but tallying). If you use REVERSE to
move a field to a temporary field, you can even do replacing and
converting.

--
Bill Klein
wmklein <at> ix.netcom.com
"Roger While" <simrw@xxxxxxxxxxxx> wrote in message
news:e3p2b2$fmv$01$1@xxxxxxxxxxxxxxxxxxxx
Seems weird to me that alongside ALL, FIRST and LEADING
the TRAILING keyword never made it into any standard.
Bill, was it ever considered ?
ACU implements it and I have just put it into OpenCOBOL.

Roger While





.



Relevant Pages

  • Re: INSPECT and TRAILING syntax
    ... Adding new syntax for functionality that already exists -- particularly ... for that reason the suggestions to provide TRAILING were not followed. ... Why was EVALUATE added to the language when IF was already there? ...
    (comp.lang.cobol)
  • Re: Pythons "only one way to do it" philosophy isnt good?
    ... Flexibility of function -- ... It is you who are in denial if you believe that syntax is ... as long as one is provided the required functionality. ... is that a programming language can't provide ...
    (comp.lang.python)
  • Re: Program compression
    ... functionality, then a new keyword can be added to allow additional ... Refactoring is a daily experience as I try various algorithms until ... Lesson 4: Refactoring syntax ...
    (comp.programming)
  • Re: INSPECT and TRAILING syntax
    ... adding new syntax is a POST-2002 development. ... '02 Standard was that it was simply "TOO BIG". ... COULD already be accomplished and did the language really need them. ... the syntax for that functionality is pretty straightforward -- adds ...
    (comp.lang.cobol)
  • 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)