W3C home > Mailing lists > Public > public-script-coord@w3.org > January to March 2017

Objects that can stringify in multiple ways

From: Anne van Kesteren <annevk@annevk.nl>
Date: Wed, 15 Mar 2017 11:25:07 +0100
Message-ID: <CADnb78h-HoXt_sVEgSmWJKKGw0stxp8shAxJNXHCvfii9XQHYQ@mail.gmail.com>
To: public-script-coord <public-script-coord@w3.org>
URLs represent a class of objects that can be stringified in multiple
ways, each of which is useful. The JavaScript standard library deals
with this situation by making toString() take an argument, as seen
with the Number class.

Is that the precedent to follow or is having some other way of
accessing such string values reasonable too?

(I feel like I've asked this question before somewhere, but I can't find it.)

Received on Wednesday, 15 March 2017 10:25:38 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:25 UTC