Path: csiph.com!weretis.net!feeder4.news.weretis.net!feeder5.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: "Christoph M. Becker" Newsgroups: comp.lang.javascript Subject: Re: Object oriented programming Date: Tue, 9 Jan 2018 13:19:46 +0100 Organization: solani.org Lines: 24 Message-ID: References: <3c2333ff-00fe-4087-ab49-f52d0546b29b@googlegroups.com> <5d1ca5ad-55c3-43b5-b3d0-617e3150355e@googlegroups.com> <12742935.DMliEloatx@PointedEars.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: solani.org 1515500383 30302 eJwNx8cBwDAIBLCVaAf2OJiy/wiJfoI6e4U53LBY+a9BIZ5xdJ5NkZ5m1n40klWNMDakSO+wDhUybiroOk0aB9lGr95LApt70G9tlKcmP1uKHd0= (9 Jan 2018 12:19:43 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Tue, 9 Jan 2018 12:19:43 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 Content-Language: de-DE In-Reply-To: <12742935.DMliEloatx@PointedEars.de> X-User-ID: eJwNyckRwDAIBLCWsGGXUA7H0H8Jjr6C8rDdCBoWq6YhflMySE3nVrR0V2DqTym5Y+nnQzV0HgtJEMA= X-NNTP-Posting-Host: eJwNysEBBCEIA8CWAEmC5Si39F/C+Z7BorOVBBODifKz/VuIjvNk1hgY3979hjNTY7NLmD5XNF7TlEImVrwaPtmNg7DuC1L41Th4ta79AUMyHLM= Cancel-Lock: sha1:hCEVNnAY3F3CftHO+1l+h/4t+cw= Xref: csiph.com comp.lang.javascript:34541 On 09.01.2018 at 02:45, Thomas 'PointedEars' Lahn wrote: > Christoph M. Becker wrote: > >> That fits well to Object.prototype.create() […] > > For reasons that should be obvious, “create” is _not_ a property of the > object referred to by “Object.prototype”. So it is “Object.create()” > instead. Thanks for the correction. > The more recent introduction of a lot of helper methods that are properties > of built-in functions that can be called as functions or constructors (which > can replace several custom workarounds devised earlier), which would be > called “static methods” in other OOP languages (and may also be in > ECMAScript implementations at some point, now that there can be proper > classes) is one reason why it becomes increasingly important to not speak > of, for example, “Object.prototype.toString()” as “Object.toString()”, […] ACK. -- Christoph M. Becker