home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / rexx / 919 < prev    next >
Encoding:
Internet Message Format  |  1992-09-08  |  2.0 KB

  1. Path: sparky!uunet!gatech!concert!borg!news_server!martinc
  2. From: martinc@grover.cs.unc.edu (Charles R. Martin)
  3. Newsgroups: comp.lang.rexx
  4. Subject: Re: Blanks, REXX, and portability...
  5. Message-ID: <MARTINC.92Sep7104222@grover.cs.unc.edu>
  6. Date: 7 Sep 92 14:42:22 GMT
  7. References: <REXXLIST%92090701303986@UGA.CC.UGA.EDU>
  8. Sender: news@cs.unc.edu
  9. Organization: UNC Department of Computer Science
  10. Lines: 32
  11. In-reply-to: GOMBERG@UCSFVM.BITNET's message of 7 Sep 92 05:28:31 GMT
  12.  
  13. Is the point that they need to match the tab in POS?  Or was that a base
  14. canard introduced in the flaming?  I myself would be *real* surprised at
  15. a substring position operation that matched both blank and tab in this
  16. context. 
  17.  
  18. But I think the point is that in the parse operation, with something
  19. like
  20.  
  21. line='foo     bar     bletch' /* that's <space><tab> */
  22. parse var line a b c
  23.  
  24. it makes sense to have a='foo', b='bar', and c='bletch', and to have
  25. parse eat both whitespace characters just as it already eats any string
  26. of blanks between non-blank maximals.  I can't think of much of a
  27. context in which this wouldn't be a (the?) sensible interpretation, and
  28. you can easily write a parse specification that will get blanks
  29. specifically if that's what you want.
  30.  
  31. I do rather like the idea of having a syntax for general regular
  32. expression matching in parse, though.  (And please don't tell me about
  33. how rexx is supposed to be a simple end-user language: people are
  34. writing complicated number-theoretic programs and lisp interpreters in
  35. rexx.)
  36. --
  37. Charles R. Martin/(Charlie)/martinc@cs.unc.edu/(ne crm@cs.duke.edu) 
  38. O/Dept. of Computer Science/CB #3175 UNC-CH/Chapel Hill, NC 27599-3175
  39. H/3611 University Dr #13M/Durham, NC 27707/(919) 419 1754
  40. ----------------------------------------------------------------------
  41. "I am he who walks the States with a barb'd tongue, questioning every
  42. one I meet,/Who are you that wanted only to be told what you knew
  43. before?/ Who are you that wanted only a book to join you in your
  44. nonsense?"  _Leaves of Grass_ xxiii.4.
  45.