From: Johannes Baagoe on
RobG :

> 4. Yepify, Cornify (cf. currying[1])

Cornford's Construct, like Duff's Device or the Muenchian Method. Or, in
the common case where a closure is created, Cornford's Closure.

--
Johannes
From: Garrett Smith on
RobG wrote:
> On May 14, 6:53 am, Stoyan <sst...(a)gmail.com> wrote:
>> Moving a discussion from twitter... Let's name this pattern :)
>>

[...]
> 4. Yepify, Cornify (cf. currying[1])
>

A function that has an explicit return has different context than one
that simply creates a lexical scope.

A pattern is a reusable solution a contextual problem.

A function that does not return a value creates a lexical scope returns
undefined. It can thus be thought of as a void function and so for that,
perhaps Cornvoid is a more suitable name than Cornify. But Cornvoid does
not roll off the tongue well. Maybe Cornhole?
--
Garrett
comp.lang.javascript FAQ: http://jibbering.com/faq/
From: nick on
On May 14, 6:01 pm, Garrett Smith <dhtmlkitc...(a)gmail.com> wrote:
> RobG wrote:
> > On May 14, 6:53 am, Stoyan <sst...(a)gmail.com> wrote:
> >> Moving a discussion from twitter... Let's name this pattern :)
>
> [...]
>
> >   4. Yepify, Cornify (cf. currying[1])
>
> A function that has an explicit return has different context than one
> that simply creates a lexical scope.
>
> A pattern is a reusable solution a contextual problem.
>
> A function that does not return a value creates a lexical scope returns
> undefined. It can thus be thought of as a void function and so for that,
> perhaps Cornvoid is a more suitable name than Cornify. But Cornvoid does
> not roll off the tongue well. Maybe Cornhole?

I think we're definitely on the right track... now all it needs is a
few more syllables to jazz it up.

Perhaps (n.) Cornforfication and (v.) Cornforify?
From: Thomas 'PointedEars' Lahn on
Garrett Smith wrote:

> RobG wrote:
>> On May 14, 6:53 am, Stoyan <sst...(a)gmail.com> wrote:
>>> Moving a discussion from twitter... Let's name this pattern :)
> [...]
>> 4. Yepify, Cornify (cf. currying[1])
>
> A function that has an explicit return has different context than one
> that simply creates a lexical scope.
>
> A pattern is a reusable solution a contextual problem.
>
> A function that does not return a value creates a lexical scope returns
> undefined. It can thus be thought of as a void function and so for that,
> perhaps Cornvoid is a more suitable name than Cornify. But Cornvoid does
> not roll off the tongue well. Maybe Cornhole?

Is there are proofread version of this available?


PointedEars
--
Danny Goodman's books are out of date and teach practices that are
positively harmful for cross-browser scripting.
-- Richard Cornford, cljs, <cife6q$253$1$8300dec7(a)news.demon.co.uk> (2004)