home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / perl / 5936 < prev    next >
Encoding:
Text File  |  1992-09-14  |  1.9 KB  |  42 lines

  1. Newsgroups: comp.lang.perl
  2. Path: sparky!uunet!van-bc!ubc-cs!phillips
  3. From: phillips@cs.ubc.ca (George Phillips)
  4. Subject: Re: Perl language formatting conventions?
  5. Message-ID: <1992Sep15.053712.3228@cs.ubc.ca>
  6. Sender: usenet@cs.ubc.ca (Usenet News)
  7. Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
  8. References: <1992Sep12.203752.13716@netlabs.com> <1366@minya.UUCP> <1992Sep14.230556.15866@news.eng.convex.com>
  9. Distribution: comp
  10. Date: Tue, 15 Sep 92 05:37:12 GMT
  11. Lines: 29
  12.  
  13. In article <1992Sep14.230556.15866@news.eng.convex.com> tchrist@convex.COM (Tom Christiansen) writes:
  14. >From the keyboard of jc@minya.UUCP (John Chambers):
  15. >:Sounds like a win to me. Actually, I think it'd be more readable, more
  16. >:mnemonic, and might even fit, if you used ':' instead of '=>'. Perhaps
  17. >:that's another bit of trivia that could be worth a violent argument or
  18. >:three.  Would this conflict with other uses of ':'?
  19. >
  20. >Well, I at least am on record for voting for packname:variable 
  21. >as a more intuitive (and parsable) alias for packname'variable.
  22.  
  23. Well, => is a little dangerous in that it looks a whole lot like >=
  24. (especially to old BASIC programmers).  -> might be a slightly less
  25. ambiguous string, but I wonder if perl 5 hasn't already appropriate
  26. -> for some other purpose.
  27.  
  28. Now, if you like readable, why not use "is" as a synonym for ",".
  29. Sure, maybe &paintbox(color is white, width is 100) looks a little
  30. too much like COBOL (perbol?), but think of the possibilities for
  31. perl poetry (perlverse programs).  "life is death, death is life"
  32. would be legal perl, assuming 'is' is really equivalent to ','.
  33. Despite my levity, I think this is a good idea.  There's already
  34. some precedent with eq et. al.
  35.  
  36. Even if this is considered, I sure hope real names are not given
  37. to every piece of perl punctuation.  It would be a boon to the
  38. poetry writers, but would lead to the production of perbose perl.
  39.  
  40. --
  41. print quote Just another Perl hacker quote semicolon
  42.