From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joost Diepenmaat Newsgroups: gmane.emacs.bugs Subject: Re: perl-mode - fix syntax of anonymous sub prototypes Date: Sat, 29 Mar 2008 16:39:27 +0100 Message-ID: <87zlsh35g0.fsf@zeekat.nl> References: <5c8016cf0803281037q5c64bd21le5e3359ddadca955@mail.gmail.com> <5c8016cf0803290143x34727c91laac78b676d598000@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1206805200 32036 80.91.229.12 (29 Mar 2008 15:40:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 29 Mar 2008 15:40:00 +0000 (UTC) To: gnu-emacs-bug@ftp.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Mar 29 16:40:30 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JfdAT-00055j-6M for geb-bug-gnu-emacs@m.gmane.org; Sat, 29 Mar 2008 16:40:29 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jfd9r-0008Vq-Iy for geb-bug-gnu-emacs@m.gmane.org; Sat, 29 Mar 2008 11:39:51 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jfd9n-0008Th-IL for bug-gnu-emacs@gnu.org; Sat, 29 Mar 2008 11:39:47 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jfd9m-0008RL-2F for bug-gnu-emacs@gnu.org; Sat, 29 Mar 2008 11:39:47 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jfd9l-0008RI-VS for bug-gnu-emacs@gnu.org; Sat, 29 Mar 2008 11:39:45 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jfd9l-000233-La for bug-gnu-emacs@gnu.org; Sat, 29 Mar 2008 11:39:45 -0400 Original-Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1Jfd9l-0000w7-5m for gnu-emacs-bug@ftp.gnu.org; Sat, 29 Mar 2008 11:39:45 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Jfd9g-00021R-Vh for gnu-emacs-bug@ftp.gnu.org; Sat, 29 Mar 2008 11:39:44 -0400 Original-Received: from news1.news.xs4all.nl ([194.109.133.242]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jfd9g-00020J-BC for gnu-emacs-bug@ftp.gnu.org; Sat, 29 Mar 2008 11:39:40 -0400 Original-Received: (from news@localhost) by news1.news.xs4all.nl (8.11.6/8.11.6) id m2TFdSf65528; Sat, 29 Mar 2008 16:39:28 +0100 (CET) (envelope-from news) Original-Newsgroups: gnu.emacs.bug User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Face: iVBORw0KGgoAAAANSUhEUgAAABgAAAAwBAMAAAD5pqeQAAAAAXNSR0IArs4c6QAAABhQTFRF URgKoyIAmTMXqF5KuYl7y6ui4NDM+/r4zJNdmwAAAAFiS0dEAIgFHUgAAAAJcEhZcwAACxMAAAsT AQCanBgAAAAHdElNRQfXDBIUAgGiEa2aAAABYUlEQVQoz02SvXaDMAyF3aHdZegD2PxkJhQ8J4R6 juGUuZDUe43R61eGJA0D8B1dXV0LGCJaDDePyOjZBtT9MgSYbIu+UpNl2A+/ukPXfNUku2ROdWhM 99myqzWX3Czp8dhY1n+MfWau+X4fZGNZpecuSwpFMHOZnpskFppgEaksGs5lFoYeYilOEMkjzcGC CzjxJJoowZIAQMPhfdYEecGhBFCOwO9GKkFkXZDtfIAax2C9wwKAWzwFyPGwQrXCIkimbzAHeFtl Ts0vJHvFkRI01ssVwpyMAoHkGmfFqL+TEmSNXjHMXeiHZAjZqjOsVxxSV8UG3Fi2ZGID2Fs2t7d3 6mLTdIdUM+PuECvW/T6gfobnSqTY+DDgmrnmATSnfMiQrTvcDOikyT1OWHxZPIF8As8P/waOjzdn IGt+vRVgYD7CrakFTSfFbwAB0Y+ghWj0IjP0Scz6I2E3zIlFb/8AfR6DwKVgwNYAAAAASUVORK5C YII= Cancel-Lock: sha1:3/8ggQO1EV3WWAJ0SRlWRomaCvg= Original-Lines: 31 Original-NNTP-Posting-Host: 80.126.3.69 Original-X-Trace: 1206805167 news.xs4all.nl 14352 [::ffff:80.126.3.69]:35598 Original-X-Complaints-To: abuse@xs4all.nl X-detected-kernel: by monty-python.gnu.org: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:17764 Archived-At: "Giuliano Procida" writes: > Joost Diepenmaat wrote: > >> Just FYI, prototypes on anonymous subs are useless. As in; discarded by >> the perl interpreter. I'm actually surprised it's even valid syntax. > > We are getting off-topic here but I disagree. It is useful to the > programmer or maintainer to see the argument structure at a glance > (especially when writing a lot of functional-style code). [ snip ] Except that that's not what (most) prototypes do in perl. At least not when they're actually used by the compiler. If they're discarded you can of course use them for whatever documentation you like, but you'd still be confusing readers who think you to expected them to "work". Just in case: http://library.n0i.net/programming/perl/articles/fm_prototypes/ >> Also, I would strongly recommend cperl-mode (which in fact does >> recognize the construct) instead of perl-mode. > > I have found cperl-mode's defaults rather unpleasant and I don't want > to spend ages customising it to my taste (i.e., make it look like > perl-mode). I just use perl-mode and I will be happy if I can fix the > few issues I have with it. Fair enough. -- Joost Diepenmaat | blog: http://joost.zeekat.nl/ | work: http://zeekat.nl/