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.

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