× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Of course I don't know you personally Michael, and this is not directed at
you personally...
But I find that most people that find it impractical to use longer variable
names are those who are two-finger typists. 
I'm not a long-variable name advocate, but I do touch type and often leave
off letters, particularly on the word "you" (for "your") or add letters
where I mean not to, such as on the word "use" (for "us"). Longer names can
lead to typos, but at least we have a case insensitive language in RPG IV. 
It could be worse, it could be like Java where:
CustNo, CUSTNO, and custno 
are three different field names. 
I became a fan of the "+=" syntax about 7 years ago when I taught myself C
and then C++. It actually comes in handy when you're running out of room on
the source line:

  if (a <> b)  count += 1;

Too bad RPG IV doesn't allow this type of syntax. :(
But it does require the semi colon. :)

  if (a <> b);
      count += 1;
  endif;

Bob Cozzi
Cozzi Consulting
www.rpgiv.com


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Michael Naughton
Sent: Tuesday, November 25, 2003 11:55 AM
To: RPG programming on the AS400 / iSeries
Subject: Re: Shorthand Syntax (was XFoot with Qualified DS's)

Call me a dinosaur (and you probably will :-), and I certainly don't mean
to rain on anyone's parade, but IMHO these are syntaxes which I will
probably never use.

On the one hand, we're all grateful for the RPG enhancements that allow us
to enter nice long variable names, and we're happy that we can now mix
upper and lower case and give the shift key a workout, but somehow we
can't abide the notion of having to type:

a = a + b

and instead are begging to be able to limit ourselves to

a += b

Personally, I don't see the point (won't be the first time ;-).

JMHO

RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx> writes:
>> Greetings to the list.
>> 
>> Has someone created or compiled a list of all the new shorthand syntax's
>> yet?
>> 
>> If so, can we get to it somehow?
>> 
>> Thanks
>>
>
>a += b;
>a -= b;
>a *= b;
>a /= b;
>a **= b;
>
>Done!
>
>Cheers! Hans


Mike Naughton
Senior Programmer/Analyst
Judd Wire, Inc.
124 Turnpike Road
Turners Falls, MA  01376
413-863-4357 x444
mnaughton@xxxxxxxxxxxx

_______________________________________________
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.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 on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.