Path: csiph.com!news.swapon.de!weretis.net!feeder4.news.weretis.net!feeder5.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Thomas 'PointedEars' Lahn Newsgroups: comp.lang.javascript Subject: Re: Object.defineProperties Date: Fri, 05 May 2017 20:59:56 +0200 Organization: PointedEars Software (PES) Lines: 17 Message-ID: <2709844.CbtlEUcBR6@PointedEars.de> References: <1943190.NgBsaNRSFp@PointedEars.de> Reply-To: Thomas 'PointedEars' Lahn Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Trace: solani.org 1494010796 1549 eJwNysERACEIA8CWLhhgKIeo9F+Ct+/1FYidDA/6+FTJeJNs1BzqphZ4dmrMBIJ/Lp3+wgqtBx1iESc= (5 May 2017 18:59:56 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Fri, 5 May 2017 18:59:56 +0000 (UTC) User-Agent: KNode/4.14.2 X-Face: %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&. On 05/05/2017 18:14, Thomas 'PointedEars' Lahn wrote: >> typeof function () {} === "function", so that is not OK in theory; >> however, one might decide that it is not OK to modify function objects. > > Functions are objects so they can be extended like any other objects. I am not sure that is the reason. ISTM that most importantly, them being objects allows for references to them to be assigned and passed. The latter would be useful for an event-driven application. -- PointedEars FAQ: | | Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.