Path: csiph.com!eternal-september.org!feeder.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Ben Bacarisse Newsgroups: comp.lang.javascript Subject: Re: Writing type conversions Date: Mon, 23 Nov 2020 20:11:15 +0000 Organization: A noiseless patient Spider Lines: 19 Message-ID: <87eekjrfz0.fsf@bsb.me.uk> References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: reader02.eternal-september.org; posting-host="b0147d4305038bf39d51f10e0621a156"; logging-data="16621"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+FHPVy0mIe1Ebw1JIhJvX49JQmRW4Sd4g=" Cancel-Lock: sha1:ZqywYhMm7TEpOv3D0eaK8ITEa5o= sha1:0m1xkXqIRVtHyILce/dAVxYTzYY= X-BSB-Auth: 1.4ec040086ab578c1e1cd.20201123201115GMT.87eekjrfz0.fsf@bsb.me.uk Xref: csiph.com comp.lang.javascript:39179 John G Harris writes: > On 23 Nov 2020 12:29:27 GMT, ram@zedat.fu-berlin.de (Stefan Ram) > wrote: > > >> However, in the Java world many deemed »+ ""« to be bad >> style because it does not express the intent of the >> programmer to convert something to a string but would >> mystify the reader. I do not share this point of view, >> however, because I think the intent of »+ ""« is clear. > > "" + x + 1 > makes it more obvious. Am I missing a joke? (It does something else altogether.) -- Ben.