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


Groups > comp.lang.javascript > #23561

Re: first-class functions?

Message-ID <30326321.6TUFh498hX@PointedEars.de> (permalink)
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Organization PointedEars Software (PES)
Date 2014-03-12 03:55 +0100
Subject Re: first-class functions?
Newsgroups comp.lang.javascript
References <first-class-functions-20140312030629@ram.dialup.fu-berlin.de>

Show all headers | View raw


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.

Back to comp.lang.javascript | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web