Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: "Christoph M. Becker" Newsgroups: comp.lang.javascript Subject: Re: ECMAScript and classes Date: Tue, 21 Oct 2014 13:27:38 +0200 Organization: solani.org Lines: 21 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: solani.org 1413890854 21213 eJwFwQEBwDAIAzBL7LSAHeiHfwlL6HFCiWCAy8UUfaql6sw1a5f9ood/5+6dLUyICRgAfyTAEPc= (21 Oct 2014 11:27:34 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Tue, 21 Oct 2014 11:27:34 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 X-User-ID: eJwFwQERADEIAzBLe6D0kMNg9S/hE3h+OYxEBgTFFX112ezz9LReSK+zQpjZEEWr9nGssX4uzBEW In-Reply-To: Cancel-Lock: sha1:lFPDrVQMzxnF2ujtFAXXX2/Oswo= X-NNTP-Posting-Host: eJwNwokRACEIBLCWEJbHchTZ/ku4m8QtVnQiPOB0tv0wS7HzZBzQapjbKHf2KJ6ypPsJSnD1AyF9ETM= Xref: csiph.com comp.lang.javascript:25957 John Harris wrote: > To sum up, C++, Java, and suchlike fully *support* classes whereas > ECMAScript allows programmers to *implement* classes but provides > less than full *support* for them. It seems to be important to distinguish between the Ecma-262 editions. Your notes seem to take into account only Ecma-262 Edition 3. Edition 5.1 (or maybe 5 already) introduced Object.seal()[1] which can be applied to the prototype object. Ecma-262 Edition 6 might introduce "maximally minimal" classes[2] and private name objects[3] which would provide better support for classes in the classical sense. [1] [2] [3] -- Christoph M. Becker