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



John King wrote on 13/12/2006 02:05:30 PM:

 1) I don't like expressions that require me to stop and think about 
what
they are doing. 

Me neither.

Perhaps it is because I was not raised on 'C', but a
quick glance at a statement like "namedIndicator = (var1 = var2);" just
isn't intuitive. RPG has abandoned many of its old abbreviations and
shortcuts (like conditioning and resulting indicators) for the sake of
readability, so why begin using obscure techniques from other languages?

I wouldn't call this an "obscure trick from [another] language".  I think 
it's a property of most computer languages that the result of any given 
expression can be assigned to a variable, and I expect this has been 
available in RPG for quite a long time.  I don't think that comparing this 
to conditioning indicators is accurate.  This is a general rule about the 
result of an expression, where as I need to work out the meaning of a 
given indicator each time I encounter it.  Then again, maybe that's just 
because I started with other languages :)

I always ask myself whether saving a few lines of code with a cute trick
is "worth it".

Yeah, I try to do this too.  Perhaps that should be the golden rule of 
programming.

#####################################################################################
Attention:
The above message and/or attachment(s) is private and confidential and is 
intended 
only for the people for which it is addressed. If you are not named in the 
address 
fields, ignore the contents and delete all the material. Thank you. Have a nice 
day.

For more information on email virus scanning, security and content
management, please contact administrator@xxxxxxxxxxxx
#####################################################################################

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.