[ruby-talk:02582] Re: String.succ

From: schneik@...
Date: 2000-04-26 08:17:24 UTC
List: ruby-talk #2582

Hi,

Reimer Behrends writes:
# On Wed, Apr 26, 2000 at 02:43:49AM -0500, schneik@us.ibm.com wrote:
# > Matz writes:
# [...]
# > # Ok, I define as following:
# > #
# > #   "".succ == ""
# > #   "\377".succ == "\001\000"
# >
# > Maybe I missed something, but for simplicity, consistency,
# > least surprise, ease of remembering, why not:
# >
# >     "".succ == "\000"
#
# That should probably be
#
#    "".succ == "\001"

Oops. You're right.

Matz also writes:

# You don't miss anything.  I doubt there can be global consensus for
# "".succ.  "\001" is second to "" if I have to choose.

Good. That's fine with me.

Conrad Schneiker
(This note is unofficial and subject to improvement without notice.)


In This Thread

Prev Next