MIDRANGE dot COM Mailing List Archive



Home » MIDRANGE-L » May 1999

Re: CF -Specs (was: "x-Spec")


  • Subject: Re: CF -Specs (was: "x-Spec")
  • From: John Hall <jhall@xxxxxxxxxxx>
  • Date: Thu, 13 May 1999 09:15:23 -0400

fixed

Evan Harris wrote:
> 
> John Hall wrote:
> >
> >What do those unary operators do?
> >
> 
> Confuse the logic, remove some of the self documenting features of code...
> 
> I honestly can't see what having counter++ adds to the language. Sure, it
> saves a few keystrokes; sure, it makes you feel like yourd doing C; sure,
> it shows you are in the know.
> 
> But, when you are trying to debug the code, or someon else is, its not
> nearly so intuitive as to what it's actually doing.
> 
> To me it *implies* an add operation, rather then explicitly stating it,
> seems to me this is *bad*
> 

I don't get this logic at all ????
If  x++ is DEFINED in the language then it does not *imply* anything. 
Any more than x = x + 1 *implies* that you are adding 1 to x.  ++ is
*explicitly* stating it.

The idea behind the unary operators is not to save typing but to
increase readability.  

x++  

vs

x = x + 1

or

eval x = x + 1

or 

           ADD          1        X

Which one can be scanned more quickly and picked out of a source listing
more easily ? 

Well anyway I think it would be a nice feature to add.  The idea being
to borrow the best from other languages to improve RPG.  Of course what
IBM really needs to do is borrow a page from M$ and rename it to RAPG
tm. (Rapid Application Program Generator).  Call it all new and improved
etc.  Greatest thing since Al Gore invented the internet ....

This would probably be more effective in making it "cool" than any
syntax changes they could make in the next 5 years.

Some of the features:
Full backward compatability
Context sensitive prompting
Embedded SQL
Fantastic File I/O routines built in.
  - Automatic record/variable declarations.
Sophisticated Error Handling.
runs on the latest 64 bit machines - the IIAS400 (Integrated Internet
Application Server)
etc
etc
etc

Oh wait - we have all that ... 

John Hall
Home Sales Co.
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---






Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2014 by MIDRANGE dot COM and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available here. If you have questions about this, please contact