home *** CD-ROM | disk | FTP | other *** search
- Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
- Path: sparky!uunet!paladin.american.edu!auvm!DKNKURZ1.BITNET!RZOTTO
- X-Acknowledge-To: <RZOTTO@DKNKURZ1>
- Message-ID: <REXXLIST%92091110055825@DEARN>
- Newsgroups: comp.lang.rexx
- Date: Fri, 11 Sep 1992 09:55:05 MEZ
- Sender: REXX Programming discussion list <REXXLIST@UGA.BITNET>
- From: Otto Stolz <RZOTTO@DKNKURZ1.BITNET>
- Subject: Re: Blanks, REXX, and portability...
- In-Reply-To: Message of Wed,
- 9 Sep 92 05:27:26 GMT from <mwm@CONTESSA.PALO-ALTO.CA.US>
- Lines: 37
-
- In <1992Sep5.134720.1@sejnet.sunet.se>, eric@sejnet.sunet.se (Eric
- Thomas) wrote:
- > REXX is intrinsically un-unixish:
- > identifiers and statements are not case sensitive,
- > the language is verbose,
- > very few special characters are used,
- > strings are not terminated by \0,
- > the default value of a variable is its name in UPPER case,
- > and so on.
-
- On Wed, 9 Sep 92 05:27:26 GMT Mike Meyer said:
- > Personally, the only thing about this list that bothers me is
- > variables having a default value. That's because it makes a large
- > class of typos hard to find, and I have the same complaint about any
- > programming language that has the same design flaw.
- >
- > That's also the only thing on that list that Rexx does differently
- > from my favorite language.
-
- To turn REXX into your favourite language, just include the following two
- magic lines with every REXX program you write, or edit:
- signal on novalue
- address none
-
- The former line tells the REXX interpreter to check for un-initialized
- variables (effectively catching typos in variable names), the latter
- tells it to send the results of bare expressions to an non-existing
- environment (effectively catching typos in key-words -- provided there
- is actually no active environment that happens to be named "NONE", of
- course).
-
- I have made an habit of including those lines with every program, and
- they have saved me lots of debugging-time!
-
- Happy programming,
- Otto Stolz <RZOTTO@DKNKURZ1.Bitnet>
- <RZOTTO@nyx.uni-konstanz.de>
-