Re: Terminology: “non-method function”

2012-04-13 Thread Axel Rauschmayer
On Tue, Apr 10, 2012 at 4:01 PM, Axel Rauschmayer a...@rauschma.de wrote: What is a good term for functions that don’t have/use dynamic `this`? “Non-method function” defines them by what they aren’t, I would like a positive definition. I’ve considered the term “pure function”, but the

Re: Terminology: “non-method function”

2012-04-11 Thread Axel Rauschmayer
On Apr 11, 2012, at 12:37 , Alex Russell wrote: On Apr 11, 2012, at 1:02 AM, Allen Wirfs-Brock wrote: On Apr 10, 2012, at 4:01 PM, Axel Rauschmayer wrote: What is a good term for functions that don’t have/use dynamic `this`? “Non-method function” defines them by what they aren’t, I would

Re: Terminology: “non-method function”

2012-04-11 Thread Rick Waldron
On Wednesday, April 11, 2012 at 6:37 AM, Alex Russell wrote: On Apr 11, 2012, at 1:02 AM, Allen Wirfs-Brock wrote: On Apr 10, 2012, at 4:01 PM, Axel Rauschmayer wrote: What is a good term for functions that don’t have/use dynamic `this`? “Non-method function” defines them by

Re: Terminology: “non-method function”

2012-04-11 Thread Peter van der Zee
On Wed, Apr 11, 2012 at 1:01 AM, Axel Rauschmayer a...@rauschma.de wrote: What is a good term for functions that don’t have/use dynamic `this`? A bound function? ___ es-discuss mailing list es-discuss@mozilla.org

Re: Terminology: “non-method function”

2012-04-11 Thread Allen Wirfs-Brock
On Apr 11, 2012, at 7:12 AM, Peter van der Zee wrote: On Wed, Apr 11, 2012 at 1:01 AM, Axel Rauschmayer a...@rauschma.de wrote: What is a good term for functions that don’t have/use dynamic `this`? A bound function? I'm leaning in that direction. A bound function has an unbound (dynamic)

Re: Terminology: “non-method function”

2012-04-11 Thread Axel Rauschmayer
Great idea. Do we need similar this-less variants for call and apply? Probably not, the former is just a normal function call. The latter can by handled by the spread operator. IIRC, what one actually does here is not currying, but partial application. However, I don’t see any good method name

RE: Terminology: “non-method function”

2012-04-11 Thread Domenic Denicola
Rauschmayer [a...@rauschma.de] Sent: Wednesday, April 11, 2012 12:54 To: Allen Wirfs-Brock Cc: es-discuss Subject: Re: Terminology: “non-method function” Great idea. Do we need similar this-less variants for call and apply? Probably not, the former is just a normal function call. The latter can

Re: Terminology: “non-method function”

2012-04-11 Thread John J Barton
On Tue, Apr 10, 2012 at 4:01 PM, Axel Rauschmayer a...@rauschma.de wrote: What is a good term for functions that don’t have/use dynamic `this`? “Non-method function” defines them by what they aren’t, I would like a positive definition. I’ve considered the term “pure function”, but the

Re: Terminology: “non-method function”

2012-04-11 Thread Allen Wirfs-Brock
(corrected a pretty obvious typo in the first sentence) On Apr 11, 2012, at 7:12 AM, Peter van der Zee wrote: On Wed, Apr 11, 2012 at 1:01 AM, Axel Rauschmayer a...@rauschma.de wrote: What is a good term for functions that don’t have/use dynamic `this`? A bound function? I'm leaning in

Re: Terminology: “non-method function”

2012-04-11 Thread Wes Garland
From a developer's POV - the terms bound/unbound makes a create deal of sense, since already have bind, which effectively turns an unbound function into a bound function. It basically completes the thought and makes it easy to explain. Heck, it even makes this behaviour easy to explain:

Re: Terminology: “non-method function”

2012-04-11 Thread Rick Waldron
On Wed, Apr 11, 2012 at 4:32 PM, Wes Garland w...@page.ca wrote: From a developer's POV - the terms bound/unbound makes a create deal of sense, since already have bind, which effectively turns an unbound function into a bound function. It basically completes the thought and makes it easy to

Terminology: “non-method function”

2012-04-10 Thread Axel Rauschmayer
What is a good term for functions that don’t have/use dynamic `this`? “Non-method function” defines them by what they aren’t, I would like a positive definition. I’ve considered the term “pure function”, but the adjective “pure” is already heavily overloaded, especially in functional

Re: Terminology: “non-method function”

2012-04-10 Thread Mark S. Miller
Non-exophoric is probably too obscure ;) On Tue, Apr 10, 2012 at 4:01 PM, Axel Rauschmayer a...@rauschma.de wrote: What is a good term for functions that don’t have/use dynamic `this`? “Non-method function” defines them by what they aren’t, I would like a positive definition. I’ve considered

Re: Terminology: “non-method function”

2012-04-10 Thread Allen Wirfs-Brock
On Apr 10, 2012, at 4:01 PM, Axel Rauschmayer wrote: What is a good term for functions that don’t have/use dynamic `this`? “Non-method function” defines them by what they aren’t, I would like a positive definition. I’ve considered the term “pure function”, but the adjective “pure” is

Re: Terminology: “non-method function”

2012-04-10 Thread Axel Rauschmayer
Endophoric? It would make linguists happy. ;-) On Apr 11, 2012, at 1:48 , Mark S. Miller wrote: Non-exophoric is probably too obscure ;) On Tue, Apr 10, 2012 at 4:01 PM, Axel Rauschmayer a...@rauschma.de wrote: What is a good term for functions that don’t have/use dynamic `this`?

Re: Terminology: “non-method function”

2012-04-10 Thread Axel Rauschmayer
On Apr 11, 2012, at 2:02 , Allen Wirfs-Brock wrote: On Apr 10, 2012, at 4:01 PM, Axel Rauschmayer wrote: What is a good term for functions that don’t have/use dynamic `this`? “Non-method function” defines them by what they aren’t, I would like a positive definition. I’ve considered the

Re: Terminology: “non-method function”

2012-04-10 Thread Axel Rauschmayer
Or, if we could somehow express that a “non-method” has no dynamic dependencies and e.g. call it “static function” or “lexical function”. However, in JS we have: callableObject instanceof Function Thus, how about the following: - Function: a callable object - Method: A function