What do you call a `function` function?

2018-04-07 Thread T.J. Crowder
Bit of a silly one, but begging the list's indulgence: I routinely explain various JavaScript topics to learners, including arrow functions, method syntax, etc. When I want to contrast "arrow function" (for instance) with functions defined with `function`, it trips me up, and often I end up saying

What do you call a `function` function?

2018-04-08 Thread Raul-Sebastian Mihăilă
Traditional function. ___ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss

Re: What do you call a `function` function?

2018-04-07 Thread Eli Perelman
I've always referenced them as: Function declarations: function a() {} Function expression: const a = function() {} Named function expression: const b = function a() {} Arrow function: const a = () => {} Not sure it's 100% semantic or descriptive, but it's how I've differentiated. Eli Per

Re: What do you call a `function` function?

2018-04-07 Thread Naveen Chawla
"function" function is the best out of all of the alternatives you mentioned. "Anonymous function declared with the function keyword" if it's not too wordy. On Sat, 7 Apr 2018 at 23:50 Eli Perelman wrote: > I've always referenced them as: > > Function declarations: > > function a() {} > > Funct

Re: What do you call a `function` function?

2018-04-07 Thread C. Scott Ananian
"keyword function" might not be too bad, either... --scott On Sat, Apr 7, 2018 at 2:32 PM, Naveen Chawla wrote: > "function" function is the best out of all of the alternatives you > mentioned. > > "Anonymous function declared with the function keyword" if it's not too > wordy. > > On Sat, 7 Ap

Re: What do you call a `function` function?

2018-04-07 Thread Isiah Meadows
I just call them "regular functions", "function declarations", or similar. I'll add "arrow" if there's an arrow, and "async" if there's an `async` keyword. - Isiah Meadows m...@isiahmeadows.com Looking for web consulting? Or a new website? Send me an email and we can get started. www.isiahmea

Re: What do you call a `function` function?

2018-04-08 Thread T.J. Crowder
**Wow**, thanks everyone for all the input!! I woke up this morning with "classic function" in my head, and immediately worried about confusing people (particularly those for whom English is not their native tongue) with `class`, since it creates a function (the constructor). So I'm currently lea

Re: Re: What do you call a `function` function?

2018-04-07 Thread Darien Valentine
I usually say "function function," but yeah ... it’s painful haha. I sometimes work with devs whose experience with ES functions is limited to methods and arrow functions, so "normal function" doesn’t really fly anymore. I’ve considered "classic function," but that probably wouldn’t help much. I h