Introducing the *structured* IF and WHEN statements ?

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Introducing the *structured* IF and WHEN statements ?

ThSITC
Hi Gentlewomans (if any) and Gentlemens, as well ... ;-)

I shall like to *introduce* the so called STRUCTURED *IF*  *and*
STRUCTURED *WHEN* statements in NetRexx,
all other dialects of Rexx, at your disposure &/ decision, as follows:

Currently, syntax is:

IF condition [;] THEN [;] statement
WHEN condition [;] THEN [;] statement

As we all (me too, of course) shall need and want to keep any and all
old Rexx Programs
running, *I* am asking You as *STUPID Question (as always, for those,
who do know me...)

*I* am proposing a third kind of IF and WHEN, having NO keyword THEN,
following the IF and WHEN at all!

Thus, new, proposed syntax will be:

IF condition
     statements
END IF

SELECT
     WHEN selection     --- note, NO THEN
          statements
     WHEN selection
          statements
     ...
     [OTHERWISE]
          statements
END


Concurrently, *I am suggesting*, that any END statement may be followed
not only by the control-label or the control variable, but by the
originating *verb*
as well.

Thus, we shall have (again) a *very STRUCTURED approach*!

which shall reveal and resolve some of the ASSYMETRICS of the Rexx
Language (all dialects)

PRO's and CON's shall be welcome, of course...

My experimental implementation does now follow those rules, and seems
to act on all variations quite properly.

When needed, of wanted, I shall proceed to forward a more explicit
*definition*
of the *structured* IF (and ELSE), and WHEN statements ...

Also, using a construct as END SELECT *or* END IF shall be very
anvantegous for
the common HUMAN recognition of what we all are trying to do:

HUMAN minded programming.

Thomas Schneider.

--
Thomas Schneider, IT Consulting; http://www.thsitc.com; Vienna, Austria,
Europe

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Thomas Schneider, Vienna, Austria (Europe) :-)

www.thsitc.com
www.db-123.com
Reply | Threaded
Open this post in threaded view
|

Re: Introducing the *structured* IF and WHEN statements ?

ThSITC
As some of you might recognize:

it's hard to kill my thoughts (of thumb) ...

Still alive, and again able to work ...
Thomas.


Waiting for: OH NO, OH NO, do NOT change &/ invent anything *new* ....
<grin>
======================================================================
Am 18.01.2013 04:13, schrieb Thomas Schneider:

> Hi Gentlewomans (if any) and Gentlemens, as well ... ;-)
>
> I shall like to *introduce* the so called STRUCTURED *IF*  *and*
> STRUCTURED *WHEN* statements in NetRexx,
> all other dialects of Rexx, at your disposure &/ decision, as follows:
>
> Currently, syntax is:
>
> IF condition [;] THEN [;] statement
> WHEN condition [;] THEN [;] statement
>
> As we all (me too, of course) shall need and want to keep any and all
> old Rexx Programs
> running, *I* am asking You as *STUPID Question (as always, for those,
> who do know me...)
>
> *I* am proposing a third kind of IF and WHEN, having NO keyword THEN,
> following the IF and WHEN at all!
>
> Thus, new, proposed syntax will be:
>
> IF condition
>     statements
> END IF
>
> SELECT
>     WHEN selection     --- note, NO THEN
>          statements
>     WHEN selection
>          statements
>     ...
>     [OTHERWISE]
>          statements
> END
>
>
> Concurrently, *I am suggesting*, that any END statement may be followed
> not only by the control-label or the control variable, but by the
> originating *verb*
> as well.
>
> Thus, we shall have (again) a *very STRUCTURED approach*!
>
> which shall reveal and resolve some of the ASSYMETRICS of the Rexx
> Language (all dialects)
>
> PRO's and CON's shall be welcome, of course...
>
> My experimental implementation does now follow those rules, and seems
> to act on all variations quite properly.
>
> When needed, of wanted, I shall proceed to forward a more explicit
> *definition*
> of the *structured* IF (and ELSE), and WHEN statements ...
>
> Also, using a construct as END SELECT *or* END IF shall be very
> anvantegous for
> the common HUMAN recognition of what we all are trying to do:
>
> HUMAN minded programming.
>
> Thomas Schneider.
>


--
Thomas Schneider, IT Consulting; http://www.thsitc.com; Vienna, Austria,
Europe

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Thomas Schneider, Vienna, Austria (Europe) :-)

www.thsitc.com
www.db-123.com
Reply | Threaded
Open this post in threaded view
|

Re: Introducing the *structured* IF and WHEN statements ?

ThSITC
Some *needed* new definitions in NRL3 shall be:
    -- an explicit appearance of the SEMICOLON in the code is equivalent
to a CARRIAGE RETURN
    -- two succeeding SEMICOLONS (without a NOP in between are *forbidden*
    -- a SEMICOLON with a succeeding  (CR/LF *or* LF (dependent on
OPSYS) *is* equivalent to a single
  CR/LF (or LF), depending on opsys, and is *internally, in all Rexx
dialects, always denoted as an *EOS*,
which is an ACRONYM for the End of Statement ....

Thus, as proposed already years ago ...

The currenlty *optional SEMICOLONS* in the IF Syntax shall becode a
*semantic meaning*, ****PLEASE****

Massa Thomas ;-)
======================================================================================

Am 18.01.2013 04:31, schrieb Thomas Schneider:

> As some of you might recognize:
>
> it's hard to kill my thoughts (of thumb) ...
>
> Still alive, and again able to work ...
> Thomas.
>
>
> Waiting for: OH NO, OH NO, do NOT change &/ invent anything *new* ....
> <grin>
> ======================================================================
> Am 18.01.2013 04:13, schrieb Thomas Schneider:
>> Hi Gentlewomans (if any) and Gentlemens, as well ... ;-)
>>
>> I shall like to *introduce* the so called STRUCTURED *IF*  *and*
>> STRUCTURED *WHEN* statements in NetRexx,
>> all other dialects of Rexx, at your disposure &/ decision, as follows:
>>
>> Currently, syntax is:
>>
>> IF condition [;] THEN [;] statement
>> WHEN condition [;] THEN [;] statement
>>
>> As we all (me too, of course) shall need and want to keep any and all
>> old Rexx Programs
>> running, *I* am asking You as *STUPID Question (as always, for those,
>> who do know me...)
>>
>> *I* am proposing a third kind of IF and WHEN, having NO keyword THEN,
>> following the IF and WHEN at all!
>>
>> Thus, new, proposed syntax will be:
>>
>> IF condition
>>     statements
>> END IF
>>
>> SELECT
>>     WHEN selection     --- note, NO THEN
>>          statements
>>     WHEN selection
>>          statements
>>     ...
>>     [OTHERWISE]
>>          statements
>> END
>>
>>
>> Concurrently, *I am suggesting*, that any END statement may be followed
>> not only by the control-label or the control variable, but by the
>> originating *verb*
>> as well.
>>
>> Thus, we shall have (again) a *very STRUCTURED approach*!
>>
>> which shall reveal and resolve some of the ASSYMETRICS of the Rexx
>> Language (all dialects)
>>
>> PRO's and CON's shall be welcome, of course...
>>
>> My experimental implementation does now follow those rules, and seems
>> to act on all variations quite properly.
>>
>> When needed, of wanted, I shall proceed to forward a more explicit
>> *definition*
>> of the *structured* IF (and ELSE), and WHEN statements ...
>>
>> Also, using a construct as END SELECT *or* END IF shall be very
>> anvantegous for
>> the common HUMAN recognition of what we all are trying to do:
>>
>> HUMAN minded programming.
>>
>> Thomas Schneider.
>>
>
>


--
Thomas Schneider, IT Consulting; http://www.thsitc.com; Vienna, Austria,
Europe

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Thomas Schneider, Vienna, Austria (Europe) :-)

www.thsitc.com
www.db-123.com
Reply | Threaded
Open this post in threaded view
|

Re: Introducing the *structured* IF and WHEN statements ?

christel.u.w.pachl christel.u.w.pachl
In reply to this post by ThSITC
Only because you asked for it:
                                                                    " OH NO,
OH NO, do NOT change &/ invent anything *new* ...."

it's hard to kill my thoughts (of thumb) ...
                                                                   "Don't
kill them. Just try to not get or to forget them.  You are wasting our but
foremost YOUR time!!!!

Walter

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: Introducing the *structured* IF and WHEN statements ?

ThSITC
Walter, and all, pls. keep in mind:

*Inventions* have been always made in History ....

*And*:

even a *good Invention*, as NetRexx, and/or Rexx, shall need some
enhancements, I think, to be able
to survive ...

Full Stop, from my side ...
Thomas Schneider.
====================================================================
Am 18.01.2013 09:31, schrieb Walter Pachl:

> Only because you asked for it:
>                                                                      " OH NO,
> OH NO, do NOT change &/ invent anything *new* ...."
>
> it's hard to kill my thoughts (of thumb) ...
>                                                                     "Don't
> kill them. Just try to not get or to forget them.  You are wasting our but
> foremost YOUR time!!!!
>
> Walter
>
> _______________________________________________
> Ibm-netrexx mailing list
> [hidden email]
> Online Archive : http://ibm-netrexx.215625.n3.nabble.com/
>
>


--
Thomas Schneider, IT Consulting; http://www.thsitc.com; Vienna, Austria,
Europe

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Thomas Schneider, Vienna, Austria (Europe) :-)

www.thsitc.com
www.db-123.com