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