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



Since John doesn't have RDi - and proudly, it seems - I don't see that his comments have meaning - the things he says should be there - mostly ARE!

Man, get a copy of RDi and look before leaping into comments about it, please!! Your experience in other fields could be helpful here - but not if you have no true knowledge of the thing.

Regards
Vern

On 3/7/2018 8:49 AM, Justin Taylor wrote:
"I don't have RDi." :(

"What I want is indentation by logical level, like any sane programmer would indent in any sane language."
That sound vague and subjective to me.


RDi has different rules for different source type, so ILE RPG and CL settings are separate.



-----Original Message-----
From: John Yeung [mailto:gallium.arsenide@xxxxxxxxx]
Sent: Wednesday, March 07, 2018 8:28 AM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Subject: Re: qsh from cl

On Wed, Mar 7, 2018 at 8:46 AM, Justin Taylor <JUSTIN@xxxxxxxxxxxxx> wrote:
I've never seen that. Subsequent lines are always indented for me. I'd suggest checking your RDi settings.
I don't have RDi. But "subsequent lines are always indented" sounds exactly like what prompting in SEU does. That's not meaningful indentation. What I want is indentation by logical level, like any sane programmer would indent in any sane language. I actually thought RDi did do meaningful indentation, since I'm pretty sure people rely on that for free-form RPG.

Roger mentioned something about "CL indentation" and "autoformat" as two different things. I wasn't completely sure what that meant.
Normally, an editor would provide automatic as-you-type indentation, as well as a "reformat existing code on demand" function (for languages where this is possible, and CL is such a language). But both of those features would presumably use the same indentation scheme, so I don't understand why Roger would praise one but not the other.

And Evan was saying something about a hypothetical prettifier recognizing IF and DO and so forth, which also suggests that prompted CL code isn't *meaningfully* indented.

One thing about prompted CL code in SEU is that the combination of always using every keyword, every time, plus always indenting everything pretty far from the left edge, results in a lot more two-line statements than necessary. This contributes significantly to the verbosity and uglification of code.

John Y.



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.