all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Joost Diepenmaat <joost@zeekat.nl>
To: gnu-emacs-bug@ftp.gnu.org
Subject: Re: perl-mode - fix syntax of anonymous sub prototypes
Date: Sat, 29 Mar 2008 16:39:27 +0100	[thread overview]
Message-ID: <87zlsh35g0.fsf@zeekat.nl> (raw)
In-Reply-To: mailman.9574.1206802710.18990.bug-gnu-emacs@gnu.org

"Giuliano Procida" <giuliano.procida@googlemail.com> 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/




  parent reply	other threads:[~2008-03-29 15:39 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-28 17:37 perl-mode - fix syntax of anonymous sub prototypes Giuliano Procida
2008-03-29  8:43 ` Giuliano Procida
2008-03-29 14:58   ` Giuliano Procida
     [not found]   ` <mailman.9574.1206802710.18990.bug-gnu-emacs@gnu.org>
2008-03-29 15:39     ` Joost Diepenmaat [this message]
2008-04-03 22:10   ` Stefan Monnier
     [not found] <mailman.9555.1206755263.18990.bug-gnu-emacs@gnu.org>
2008-03-29 11:23 ` Joost Diepenmaat

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zlsh35g0.fsf@zeekat.nl \
    --to=joost@zeekat.nl \
    --cc=gnu-emacs-bug@ftp.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.