From: Colin D Bennett <colin@gibibit.com>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: Eliminating nested functions
Date: Sat, 18 Apr 2009 08:57:33 -0700 [thread overview]
Message-ID: <200904180857.33301.colin@gibibit.com> (raw)
In-Reply-To: <20090417.161700.16185907.davem@davemloft.net>
David Miller wrote on Friday 17 April 2009:
> From: Pavel Roskin <proski@gnu.org>
> Date: Fri, 17 Apr 2009 11:54:57 -0400
>
> > I suggest that we eliminate all nested functions.
>
> I support this completely.
Me too.
While I like the idea of nested functions, since they are like closures and
make a lot of common operations (such as iterating over a collection) a little
more concise in the source code, you can certainly implement anything without
nested functions that you can with them. Probably passing a pointer to a
local structure is the easiest way to do it in most cases if the iteration
function needs to access some state, right?
Regards,
Colin
next prev parent reply other threads:[~2009-04-18 15:57 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-17 15:54 Eliminating nested functions Pavel Roskin
2009-04-17 19:33 ` Bean
2009-04-17 19:52 ` Vladimir Serbinenko
2009-04-17 21:38 ` Pavel Roskin
2009-04-19 6:38 ` Bean
2009-04-19 14:29 ` Pavel Roskin
2009-04-19 14:51 ` Vladimir Serbinenko
2009-04-19 16:52 ` Bean
2009-04-17 21:57 ` Christian Franke
2009-04-17 23:17 ` David Miller
2009-04-18 15:57 ` Colin D Bennett [this message]
2009-04-19 3:52 ` David Miller
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=200904180857.33301.colin@gibibit.com \
--to=colin@gibibit.com \
--cc=grub-devel@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.
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.