home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / perl / 5023 < prev    next >
Encoding:
Text File  |  1992-07-29  |  1.4 KB  |  37 lines

  1. Newsgroups: comp.lang.perl
  2. Path: sparky!uunet!gatech!psuvax1!flee
  3. From: flee@cs.psu.edu (Felix Lee)
  4. Subject: Re: kosher?
  5. Message-ID: <Bs65nz.E90@cs.psu.edu>
  6. Sender: news@cs.psu.edu (Usenet)
  7. Nntp-Posting-Host: dictionopolis.cs.psu.edu
  8. References: <ROBT.92Jul29134230@idt101.is.morgan.com>
  9.     <1992Jul29.193125.19094@news.eng.convex.com>
  10. Date: Wed, 29 Jul 1992 22:14:20 GMT
  11. Lines: 24
  12.  
  13. In comparison, REXX also has a form of "unquoted" strings, such that
  14.     say hello world
  15. is equivalent to
  16.     say "HELLO" "WORLD"
  17.  
  18. This isn't really an unquoted string; it's more like an alternative to
  19. 'undef'.  In REXX, any symbol not assigned a value has its name as a
  20. default value.  I seem to remember an IBM mainframe implementation of
  21. Lisp that had similar behavior.
  22.  
  23. This doesn't work well for Perl, because Perl doesn't quite have
  24. symbols.  Perl is rather committed to funny punctuation like '$foo'.
  25. Inadvertently using 'foo' instead of '$foo' is a subtle typo that's a
  26. little hard to find.
  27.  
  28. Tom Christiansen:
  29. > The problem is that Larry might make blah or bleh reserved words.
  30.  
  31. In principle, this doesn't have to be a problem.  There aren't that
  32. many words with syntactic significance, and most of them are only
  33. meaningful in limited contexts.  You can also allow user definitions
  34. to override keywords without much problem.  (But trying to make the
  35. keyword use available in the same scope gets a little nasty.)
  36. --
  37.