[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: One more string functions change

From: Dmitry Antipov
Subject: Re: One more string functions change
Date: Sat, 28 Jun 2014 20:32:44 +0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

On 06/28/2014 05:48 PM, Drew Adams wrote:

Value of case-fold-search doesn't affect string-lessp and string-equal.

Oh, right.  What was the reason for that?  Anyone know?

Someone was too lazy or just didn't consider this important
enough - who knows?

or: (string-lessp (upper s1) (upper s2))

To me, that cliche seems just as easy & clear as (string-lessp s1 s2 t).

Sure, but if we treat strings as immutable objects, both 'upper' should
create copies; the latter can avoid memory allocation at all and so
disprove the well-known "LISP programmers know the value of everything
and the cost of nothing" principle.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]