Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #23561 > unrolled thread

Re: first-class functions?

Started byThomas 'PointedEars' Lahn <PointedEars@web.de>
First post2014-03-12 03:55 +0100
Last post2014-03-12 03:55 +0100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.javascript

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: first-class functions? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-03-12 03:55 +0100

#23561 — Re: first-class functions?

FromThomas 'PointedEars' Lahn <PointedEars@web.de>
Date2014-03-12 03:55 +0100
SubjectRe: first-class functions?
Message-ID<30326321.6TUFh498hX@PointedEars.de>
Stefan Ram wrote:

>   And this gives an error message here! Where are my
>   first-class "functions as values", when I need them?

The proper term is “first-class *object*”.  Functions in ECMAScript are in 
general “first-class objects”, but with methods you have to consider that 
they may be just callable objects, and that there is a “this” value 
involved.  You cannot call all methods as methods of another object, not 
even all native ones.

-- 
PointedEars
FAQ: <http://PointedEars.de/faq> | SVN: <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | ES Matrix: <http://PointedEars.de/es-matrix>
Please do not Cc: me. / Bitte keine Kopien per E-Mail.

[toc] | [standalone]


Back to top | Article view | comp.lang.javascript


csiph-web