[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Eliminating nested functions
From: |
Colin D Bennett |
Subject: |
Re: Eliminating nested functions |
Date: |
Sat, 18 Apr 2009 08:57:33 -0700 |
User-agent: |
KMail/1.11.2 (Linux/2.6.28-11-generic; KDE/4.2.2; x86_64; ; ) |
David Miller wrote on Friday 17 April 2009:
> From: Pavel Roskin <address@hidden>
> 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
Re: Eliminating nested functions, Christian Franke, 2009/04/17
Re: Eliminating nested functions, David Miller, 2009/04/17
- Re: Eliminating nested functions,
Colin D Bennett <=