[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: RE: Getting a reference to the current function
- From: "Gavin Kistner" <gavin.kistner@...>
- Date: Wed, 4 Oct 2006 14:57:07 -0600
From: Rici Lake
> On 4-Oct-06, at 3:10 PM, Gavin Kistner wrote:
> > True. Something feels wrong to me about using a closure to
> tie certain
> > variables to a certain function, but it's certainly effective.
> That's what closures are, surely? :)
I seem to have been distracted when I wrote that. What I really meant
"It feels wrong to use a closure just to wrap a single instance of a
function up with some data. Because, I dunno, I'm used to closures being
used to repeatedly tie different local variables with the same function
Certainly nothing functionally wrong with it, just...weird.