×
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.
On Tue, Mar 31, 2015 at 1:36 PM, Mark Murphy/STAR BASE Consulting Inc.
<mmurphy@xxxxxxxxxxxxxxx> wrote:
I've never seen anywhere I would need a unary plus even when programming in C.
C is not a very exotic language. It's basically an elaborate macro
system for assembly language. C's unary plus, while not as impotent
as RPG's, is also included in the language mainly for symmetry with
unary minus. This is actually documented as the official primary
rationale for its inclusion in ANSI C.
C++ on the other hand, allows operator overloading, which is one way
to achieve interesting things with it. That's just one example, for
one language. There are others.
I already said you are not likely to find any use *in typical business
logic* for unary plus, independent of what language you're using.
There are vanishingly few cases where anything that I would consider
"exotic" is being done on an IBM i. Folks who are interested in that
kind of computing won't choose the i (if they even know about it).
They might choose IBM Power hardware, but they won't choose the i
operating system.
John Y.
As an Amazon Associate we earn from qualifying purchases.