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