home *** CD-ROM | disk | FTP | other *** search
- Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!paladin.american.edu!auvm!UCSFVM.BITNET!GOMBERG
- Message-ID: <REXXLIST%92082304004522@UGA.CC.UGA.EDU>
- Newsgroups: comp.lang.rexx
- Date: Sun, 23 Aug 1992 00:48:45 PDT
- Sender: REXX Programming discussion list <REXXLIST@UGA.BITNET>
- From: Dave Gomberg <GOMBERG@UCSFVM.BITNET>
- Subject: Re: PARSE wishlist/brainstorming
- In-Reply-To: Message of Fri,
- 21 Aug 1992 18:57:00 GMT from <SEB1525@MVS.DRAPER.COM>
- Lines: 25
-
- I am sorry, guys, but I just don't see the stem. bit with parse.
-
- First, I have not seen a syntax that doesn't already have a (different)
- meaning. Second, I haven't seen a syntax I like.
-
- But worst of all, I don't see how this adds much to the language. For
- the case where you have some string that introduces what you want and
- some string that terminates it (eg. A=7,B=3,C=4,D=11) where you want the
- values being assigned, what on earth is wrong with:
-
- DO I=1 BY 1 WHILE String<>''
- PARSE VAR String '=' Stem.I ',' String
- END
- Stem.0=I-1
-
- And this type of code generally supports changing delimiters when some
- other situation occurs that might change the parsing rules. Personally,
- I don't care if REXX looks like awk or BASIC or any other language. I
- care that it supports its target audience well. I don't think the
- suggestions made so far do that.
-
- If you want to see some unclear on the concept REXX thinking, if you see
- what the VM folks have done with pipes (itself a wonderful product) it is
- sort of like APL write-only code. Not a tribute to REXX. So let's remember
- that just because something could be added to REXX means it should. Dave
-