Path: csiph.com!feeder.erje.net!1.eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!news.mb-net.net!open-news-network.org!.POSTED.85.236.197.178.dynamic.wless.lssmb00p-cgnat.res.cust.swisscom.ch!not-for-mail From: Thomas 'PointedEars' Lahn Newsgroups: comp.lang.javascript Subject: Re: Is JS a functional programming language? Date: Sun, 22 Apr 2018 02:19 +0200 Organization: PointedEars Software (PES) Lines: 41 Message-ID: <2579441.nDJ51ryLS1@PointedEars.de> References: <2ea2803e-c39d-40e0-b8ed-136c3dc9b4e0@googlegroups.com> <3364120.8dbtfUO1ph@PointedEars.de> <4mv0ddt3bre9bbiofnvabnbamlp9jfj072@4ax.com> <15901681.8V3EAehsKz@PointedEars.de> <3dd0b784-9634-4047-b79b-a171d1e1d099@googlegroups.com> <611cba1f-e8f1-4ca1-8eb5-5e10456200d1@googlegroups.com> <1703120.hZdRbIOfhN@PointedEars.de> <12503549.nl7q7Es1eF@PointedEars.de> Reply-To: Thomas 'PointedEars' Lahn Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8Bit Injection-Info: gwaiyur.mb-net.net; posting-host="85.236.197.178.dynamic.wless.lssmb00p-cgnat.res.cust.swisscom.ch:178.197.236.85"; logging-data="25017"; mail-complaints-to="abuse@open-news-network.org" 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+&. JFTR: I do not agree with much that Crockford claims there (maybe I will add my remarks on it some day), but the point I wanted to make with this reference is where he is correct there: “JavaScript”, if you understand that to mean all ECMAScript implementations (and you should not; Crockford *oversimplifies* there), is “Lisp in C's Clothing” indeed. In fact, Brendan Eich, creator of (Netscape) JavaScript, wrote *verbatim* in his 2008 blog entry that he “was recruited to Netscape with the promise of ‘doing Scheme’ in the browser”. Scheme, too, supports both imperative and functional programming as it was influenced by Lisp, and is described as one of the main dialects of Lisp (the other being Common Lisp). Also, ECMAScript and its implementations ActionScript (Macromedia/Adobe in Flash), ECMAScript for XML (formerly, Mozilla in Firefox), JavaScript (Netscape et al. in various environments), and JScript (Microsoft in Internet Explorer, maybe also Edge)¹ are rightfully listed under in the “Impure” subsection, along with Lisp and Scheme. (Whereas AISB, Haskell is rightfully listed in the “Pure” subsection.) [Not my doing this time, but good to see for a change, as Wikipedia unfortunately has a history of propagating misconceptions about ECMAScript.] _______ ¹ see also the ECMAScript Support Matrix (URI in the signature below) -- PointedEars FAQ: | | Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.