chicken-hackers
[Top][All Lists]
Advanced

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

Re: [Chicken-hackers] substring=?


From: Mario Domenech Goulart
Subject: Re: [Chicken-hackers] substring=?
Date: Fri, 26 Aug 2016 15:49:29 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

Hi,

On Fri, 26 Aug 2016 23:37:49 +1200 Evan Hanson <address@hidden> wrote:

> I disagree.
>
> On 2016-08-26  2:46, Elf wrote:
>> substring is an instance of a subset operation, and
>
> It isn't, and neither is `substring=?`, which is a comparison procedure
> first and foremost.
>
>> I submit that it shouldn't be named substring
>
> It isn't, it's named `substring=?`, because it compares substrings.
>
>> I think the correct behaviour would be adding a check to the beginning
>> of the substring=? procedure, such that
>
> This would break commutativity for the base case and lead to general
> confusion.
>
> My two cents, current behaviour is fine.

Out of curiosity: any example where substring=? would be useful in
practice?

All the best.
Mario
-- 
http://parenteses.org/mario



reply via email to

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