×
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've never seen anywhere I would need a unary plus even when programming in C.
Mark Murphy
STAR BASE Consulting, Inc.
mmurphy@xxxxxxxxxxxxxxx
-----John Yeung <gallium.arsenide@xxxxxxxxx> wrote: -----
To: "RPG programming on the IBM i (AS/400 and iSeries)" <rpg400-l@xxxxxxxxxxxx>
From: John Yeung <gallium.arsenide@xxxxxxxxx>
Date: 03/31/2015 12:20PM
Subject: Re: RPG Compiler (and RDi Syntax Checker) weirdness
On Tue, Mar 31, 2015 at 11:17 AM, Mark Murphy/STAR BASE Consulting
Inc. <mmurphy@xxxxxxxxxxxxxxx> wrote:
Yea, when John wrote that, it made sense, just looks strange.
Unary plus is indeed strange in most everyday contexts, especially in
business logic. In a language like RPG, the most compelling rationale
for even having it in the language is for symmetry with the unary
minus. (If you're thinking that sounds pretty weak, I agree!)
In other languages, unary plus is not *as* useless, though still not
particularly useful. You have to be doing something fairly exotic for
it to actually be important.
John Y.
As an Amazon Associate we earn from qualifying purchases.