home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / perl / 5565 < prev    next >
Encoding:
Internet Message Format  |  1992-08-27  |  1.8 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!eff!world!ksr!bill
  2. From: bill@ksr.com (Bill Mann)
  3. Newsgroups: comp.lang.perl
  4. Subject: Re: Perl language formatting conventions?
  5. Message-ID: <BILL.92Aug27164723@kaos.ksr.com>
  6. Date: 27 Aug 92 16:47:23 EDT
  7. References: <DAVE.92Aug25141544@pipi.iis.u-tokyo.ac.jp>
  8.     <1992Aug25.152315.20630@news.eng.convex.com>
  9. Sender: news@ksr.com
  10. Distribution: comp
  11. Organization: Kendall Square Research, Waltham, MA
  12. Lines: 32
  13. In-reply-to: tchrist@convex.COM's message of 25 Aug 92 11:23:15 EDT
  14.  
  15. In article <1992Aug25.152315.20630@news.eng.convex.com> tchrist@convex.COM (Tom Christiansen) writes:
  16. > From the keyboard of dave@pipi.iis.u-tokyo.ac.jp (David Wuertele):
  17. > :Is there a Perl formatting convention similar to the one for C advocated
  18. > :by GNU?  Since Perl derives a bit of syntax from C I have been using that
  19. > :instead, but the perl-mode.el tab function seems to want to format things
  20. > :differently.
  21. > :
  22. > : ...
  23. >
  24. > I think that the GNU guidelines (which I've only ever read in what
  25. > you've posted) are pretty ugly.  
  26. >
  27. > A friend of mine would like to see a style guide for Perl code 
  28. > similar to the BSD KNF (Berkeley's Kernel Normal Form), which is
  29. > actually pretty much what I (and Larry) seem to use.  I'm actually
  30. > trying to develop this, but it's not ready for publication yet.
  31.  
  32. Personally, I try to use the existing style when maintaining code or
  33. documentation.  New standards are fine for major rewrites or new
  34. development, but within limits style is pretty much a matter of taste.
  35.  
  36. For a table showing how to customize perl-mode for various styles,
  37. type ^hm while in perl-mode, and look near the bottom of the *Help*
  38. buffer.  The default values where chosen to match the style Larry
  39. uses, and which I like.
  40.  
  41. Bill Mann
  42. bill@ksr.com (ksr!bill@uunet.uu.net)
  43. --
  44.  
  45. Bill Mann
  46. bill@ksr.com (ksr!bill@uunet.uu.net)
  47.