W3C home > Mailing lists > Public > www-international@w3.org > October to December 2009

Re: New Working Group Note: Requirements for String Identity Matching and String Indexing

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Wed, 07 Oct 2009 06:08:10 +0200
To: John Cowan <cowan@ccil.org>
Cc: www-international@w3.org
Message-ID: <rp4oc5dutell3n6odlp1l0qfrktg99s3lj@hive.bjoern.hoehrmann.de>
* John Cowan wrote:
>Bjoern Hoehrmann scripsit:
>
>> Two things are identical if you cannot tell them apart. Two things are
>> merely equivalent in some context if the differences between them are
>> of no concern in that context.
>
>This distinction is not effective in programming.

It is one of the main characteristics of "programming" that you, as the
programmer, get to decide what distinctions you want to make. I do not
see how this is relevant here. In your example:

>	char *x = "abc";
>	char *y = strdup(x)

You have different "objects"; those objects are not strings, they are on
a higher level. Having different objects but identical strings is not a
contradiction.
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Am Badedeich 7 · Telefon: +49(0)160/4415681 · http://www.bjoernsworld.de
25899 Dagebüll · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
Received on Wednesday, 7 October 2009 04:08:37 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 7 October 2009 04:08:39 GMT