[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#9653: 24.0.50; `ucs-names' - Why all of the ("" . XXX) entries?
From: |
Juanma Barranquero |
Subject: |
bug#9653: 24.0.50; `ucs-names' - Why all of the ("" . XXX) entries? |
Date: |
Thu, 6 Oct 2011 14:19:45 +0200 |
On Thu, Oct 6, 2011 at 05:53, Kevin Rodgers <kevin.d.rodgers@gmail.com> wrote:
> Which seems more like a "null string"?
>
> -*- mode: C -*-
> char *null_string = NULL;
> char *empty_string = "";
empty_string, IMHO, though the names are certainly misleading. "" is
clearly a string, NULL is a null pointer to anything (or nothing).
There's nothing stringy in NULL.
I'm with Kenichi and Eli in this, I think "" is more correct/clean
than nil in this case. (or x "") is not difficult to use, but (and
(not (eq x "")) x) isn't rocket science either, and rests to see how
often it is needed anyway.
Funnily enough, a few years back I did a change to uniquify where I
defended the idea that a basename of "" and nil were one and the same
(basename being something with a narrow definition specific to
desktop.el) and Stefan argued (and prevailed) for the relevant
function returning "" and leaving the decision of treating it like nil
to the callers... And he was right: it was a cleaner, more generic
interface.
Juanma
- bug#9653: 24.0.50; `ucs-names' - Why all of the ("" . XXX) entries?, (continued)
- bug#9653: 24.0.50; `ucs-names' - Why all of the ("" . XXX) entries?, Thierry Volpiatto, 2011/10/02
- bug#9653: 24.0.50; `ucs-names' - Why all of the ("" . XXX) entries?, Stefan Monnier, 2011/10/02
- bug#9653: 24.0.50; `ucs-names' - Why all of the ("" . XXX) entries?, Kenichi Handa, 2011/10/03
- bug#9653: 24.0.50; `ucs-names' - Why all of the ("" . XXX) entries?, Stefan Monnier, 2011/10/03
- bug#9653: 24.0.50; `ucs-names' - Why all of the ("" . XXX) entries?, Kenichi Handa, 2011/10/03
- bug#9653: 24.0.50; `ucs-names' - Why all of the ("" . XXX) entries?, Stefan Monnier, 2011/10/04
- bug#9653: 24.0.50; `ucs-names' - Why all of the ("" . XXX) entries?, Kevin Rodgers, 2011/10/05
- bug#9653: 24.0.50; `ucs-names' - Why all of the ("" . XXX) entries?,
Juanma Barranquero <=
- bug#9653: 24.0.50; `ucs-names' - Why all of the ("" . XXX) entries?, Andreas Schwab, 2011/10/06
- bug#9653: 24.0.50; `ucs-names' - Why all of the ("" . XXX) entries?, Juanma Barranquero, 2011/10/06
- bug#9653: 24.0.50; `ucs-names' - Why all of the ("" . XXX) entries?, Andreas Schwab, 2011/10/06
- bug#9653: 24.0.50; `ucs-names' - Why all of the ("" . XXX) entries?, Juanma Barranquero, 2011/10/06
- bug#9653: 24.0.50; `ucs-names' - Why all of the ("" . XXX) entries?, Drew Adams, 2011/10/03
- bug#9653: 24.0.50; `ucs-names' - Why all of the ("" . XXX) entries?, Kenichi Handa, 2011/10/04
- bug#9653: 24.0.50; `ucs-names' - Why all of the ("" . XXX) entries?, Drew Adams, 2011/10/04
- bug#9653: 24.0.50; `ucs-names' - Why all of the ("" . XXX) entries?, Drew Adams, 2011/10/04
- bug#9653: 24.0.50; `ucs-names' - Why all of the ("" . XXX) entries?, Eli Zaretskii, 2011/10/04
- bug#9653: 24.0.50; `ucs-names' - Why all of the ("" . XXX) entries?, Drew Adams, 2011/10/04