On Tue, Jul 12, 2011 at 5:54 PM, austincheney <[email protected]
> wrote:

[...]

3) I ALWAYS use anonymous functions assigned to variables.  There was
> some quote that went around from Brendan Eich that the "function" is
> too long and makes functional coding diffecult to read, but because I
> use assigned anonymous functions I do not encounter this problem.
> There are some rare cases where I use an unassigned anonymous function
> as an otherwise shallow container, but these rare cases are only used
> for condition encapsulation to ease readability and are not used to
> supply variable scope.
>

I didn't catch the reasoning behind using anonymous function expressions. Is
it to ease refactoring in the future (when moving chunks of code around)?

I always use function declarations (with few exceptions) which makes
inspection better, although some profilers/consoles are getting better at
it.

[...]

-- 
kangax

-- 
To view archived discussions from the original JSMentors Mailman list: 
http://www.mail-archive.com/[email protected]/

To search via a non-Google archive, visit here: 
http://www.mail-archive.com/[email protected]/

To unsubscribe from this group, send email to
[email protected]

Reply via email to