× 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.



I remember back in college I loved the idea of a "readable" language. One
where you wouldn't need !=, ||, && and the like. You could just say
things like NOT, EQUAL, AND, XOR, etc. There are some languages that
implement many of these common ones now days. SQL seems to be the closest
that I've seen actually, and that is only a query language.

I hadn't remembered the <> from when I did pascal in 10th grade. And back
when I coded in VB6 I would code if (a not = b) because I found it more
readable than <>. Of course I had forgotten these things until this
thread. What a jog down memory lane, and my memory lane is shorter than
most on this list :-)




Thanks
Bryce Martin
Programmer/Analyst I
570-546-4777



"Birgitta Hauser" <Hauser@xxxxxxxxxxxxxxx>
Sent by: rpg400-l-bounces@xxxxxxxxxxxx
03/04/2010 12:46 AM
Please respond to
RPG programming on the IBM i / System i <rpg400-l@xxxxxxxxxxxx>


To
"'RPG programming on the IBM i / System i'" <rpg400-l@xxxxxxxxxxxx>
cc

Subject
AW: More on RPG style






Hmmm... SQL uses <>, doesn't it?
SQL also accepts != and ¬= but both are not language independent. For
example in my German environment I need to specify Ü= instead of != and ^=
instead of ¬=.
That's why this specification should be avoided, like special characters
such as @, (§ instead of @ in the German environment), #, $ should be
avoided in the source code.

May be it would be nice to have syntax alternatives in RPG, that means !=
can be used instead of <>, && and || can be used instead of AND and OR or
even *EQ or *NE can be used instead of = and <>. ... But I think it's not
worth to get implemented.
The main problem I see with these alternatives is these special characters
may not be language independent at least not as long as our source code is
not Unicode!
I don't like to type Ü= if I mean !=,

(I recently had to write a program, where the use/programmer can enter
some
snippets/conditions in either RPG, CL or Javascript Style and I had to
translate it into the Javascript).

Mit freundlichen Grüßen / Best regards

Birgitta Hauser

"Shoot for the moon, even if you miss, you'll land among the stars." (Les
Brown)
"If you think education is expensive, try ignorance." (Derek Bok)
"What is worse than training your staff and losing them? Not training them
and keeping them!"

-----Ursprüngliche Nachricht-----
Von: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
Im
Auftrag von Scott Klement
Gesendet: Wednesday, 03. March 2010 19:58
An: RPG programming on the IBM i / System i
Betreff: Re: More on RPG style

Hmmm... SQL uses <>, doesn't it? As does BASIC, including Visual
Basic (at least, it did back when I coded in it) as well as CL, right?

At the time that the decision to use <> over != was made, I don't think
anyone realized how popular languages like Java, C# and PHP would make
the != syntax. At the time, there were far more RPG programmers using
languages like VB, SQL and CL than there were RPG programmers using
C/C++. (And Java, PHP, C#, et al didn't yet exist)


On 3/3/2010 12:19 PM, Bryce Martin wrote:
I prefer the C style of != personally. Since almost every other
language
I've code in it was !=. RPG is the first one I've seen that is<> which
feels very strange when first starting out coming from C/C++ background.
It makes the code less readable for someone not versed in the language,
maybe some people don't care in that case, but I think its nice to play
well with others :)
--
This is the RPG programming on the IBM i / System i (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.


--
This is the RPG programming on the IBM i / System i (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.



--- This message (including any attachments) is intended only for the use of the individual or entity to which it is addressed and may contain information that is non-public, proprietary, privileged, confidential, and exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any use, dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us and destroy this message immediately. ---

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.