Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!peer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nntp.club.cc.cmu.edu!micro-heart-of-gold.mit.edu!bloom-beacon.mit.edu!bloom-beacon.mit.edu!panix!not-for-mail From: Grant Edwards Newsgroups: comp.lang.python Subject: Re: Ah Python, you have spoiled me for all other languages Date: Fri, 22 May 2015 17:47:39 +0000 (UTC) Organization: PANIX Public Access Internet and UNIX, NYC Lines: 41 Message-ID: References: <555f440a$0$12990$c3e8da3$5496439d@news.astraweb.com> NNTP-Posting-Host: 67-130-15-94.dia.static.qwest.net X-Trace: reader1.panix.com 1432316859 25736 67.130.15.94 (22 May 2015 17:47:39 GMT) X-Complaints-To: abuse@panix.com NNTP-Posting-Date: Fri, 22 May 2015 17:47:39 +0000 (UTC) User-Agent: slrn/1.0.1 (Linux) X-Received-Bytes: 2247 X-Received-Body-CRC: 2124884265 Xref: csiph.com comp.lang.python:91057 On 2015-05-22, Steven D'Aprano wrote: > But Javascript... > > Javascript also lacks a standard assert mechanism, but that wasn't > too hard to fix. It also has two different equality operators, each > of which are so complicated and confusing that apparently there are > two-year Masters degrees on them[2], and yet with neither of these > operators does the array [1, 2] equal the array [1, 2]. Yep, Javascript has a few warts. * Implicit conversions. A problem common to many languages, so most of us have learned to deal with it. * The attempt to make semicolons optional was a failure and should have been abandoned. * Lack of block-scope. For some reason, it doesn't bother me in Python, but it does in Javascript. That probably has something to do with... * Hoisting. Hoisting isn't intrinsically bad, but there's something just a bit off about Javascript's hoisting. I can't quite put my finger on why, but it trips me up. * The == operator. It rarely does what you want. Just don't use it. * When used in a browser, the rather odd meanings of 'this' in certain situations. I do like the use of closures. And of course, the truly _great_ thing about Javascript is... It's not PHP! -- Grant Edwards grant.b.edwards Yow! Am I having fun yet? at gmail.com