home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / rexx / 767 next >
Encoding:
Text File  |  1992-08-23  |  1.7 KB  |  38 lines

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