pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter J. Holzer <hjp-pgsql@hjp.at>
To: pgsql-general@lists.postgresql.org
Subject: Re: Camel case identifiers and folding
Date: Sat, 16 Mar 2019 18:40:21 +0100
Message-ID: <20190316174021.wcpjdoyize6f2gw5@hjp.at> (raw)
In-Reply-To: <7D62A9A2-C784-47A9-96BC-5949D0C8348E@gmail.com>
References: <CAJrKPxc69dMNJAE=3Y5mG56sXwQLRqXZnN4inZQ3EXdwZFqH2Q@mail.gmail.com>
	<1552641160.5846.2.camel@ucll.be>
	<CAKqnccin-0hXKM8q527kvSG=pOGrqUZy2VHsZd4-dWOc29nG=w@mail.gmail.com>
	<7D62A9A2-C784-47A9-96BC-5949D0C8348E@gmail.com>

On 2019-03-15 17:09:49 -0600, Rob Sargent wrote:
>     On Mar 15, 2019, at 4:43 PM, Morris de Oryx <morrisdeoryx@gmail.com> wrote:
> 
>     The original question has already been answered really well, but it reminds
>     me to mention that Postgres text/varchar values are case-sensitive. Here's
>     a list of the times when I would like a case-sensitive text field:
> 
>        Never
> 
>     Now here's the list of times I would like a case-blind text field:
> 
>        Everywhere else.
> 
[...]
> What sort of content is in your field of type text?  Certainly, in English
> prose, “rob” is different than “Rob”

I disagree. While the grammar for written English has rules when to
write "rob" and when to write "Rob", that distinction usually carries no
semantic difference. Consider:

"How to Rob the Hump of a Camel"

"the go programming language was invented by rob pike, ken thompson and
robert griesemer"

Here "Rob" is a verb and "rob" is a first name, the opposite of what you
probably intended. Yet the the first sentence is grammatically correct
if it is a title and while the second isn't correct, few people will
have difficulties understanding it (many probably won't even notice that
it is all lower case).

Spoken English of course doesn't even have a case distinction.

> and if the content is for a web page (or in my experience, the content
> of medical reference books) these differences are critical.

A web page? Rarely, at least for the human readable parts. Medicine? I
don't know. There may be names for different substances which differ
only in case. But those are parts of a formal language, and as
programmers we already know about case-sensitive formal languages.

        hp

-- 
   _  | Peter J. Holzer    | we build much bigger, better disasters now
|_|_) |                    | because we have much more sophisticated
| |   | hjp@hjp.at         | management tools.
__/   | http://www.hjp.at/ | -- Ross Anderson <https://www.edge.org/;

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (20+ messages)  latest in thread

Message-ID: <20190316174021.wcpjdoyize6f2gw5@hjp.at>
Permalink:  ../20190316174021.wcpjdoyize6f2gw5@hjp.at/
Also on:    postgresql.org/message-id/20190316174021.wcpjdoyize6f2gw5@hjp.at

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: hjp-pgsql@hjp.at
  Subject: Re: Camel case identifiers and folding
  In-Reply-To: <20190316174021.wcpjdoyize6f2gw5@hjp.at>
  References: <CAJrKPxc69dMNJAE=3Y5mG56sXwQLRqXZnN4inZQ3EXdwZFqH2Q@mail.gmail.com> <1552641160.5846.2.camel@ucll.be> <CAKqnccin-0hXKM8q527kvSG=pOGrqUZy2VHsZd4-dWOc29nG=w@mail.gmail.com> <7D62A9A2-C784-47A9-96BC-5949D0C8348E@gmail.com> <20190316174021.wcpjdoyize6f2gw5@hjp.at>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox