[Top][All Lists]

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

Re: [Chicken-hackers] [PATCH][for chicken-5] Remove srfi-13

From: Oleg Kolosov
Subject: Re: [Chicken-hackers] [PATCH][for chicken-5] Remove srfi-13
Date: Thu, 11 Sep 2014 21:51:27 +0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.0

On 09/11/14 20:45, Felix Winkelmann wrote:
>> I don't see how providing faster alternatives to SRFI-13 procedures is
>> mutually exclusive with making a cleaner API, unless you're planning on
>> making completely unsafe versions.
> Yes (gulp!), I was also thinking about unsafe versions. But I think it
> is more important to reduce the core API and reduce the number of
> alternatives, which reduces the mental load on the programmer ("should
> I use 'string-prefix?' or 'string-starts-with?', and so on...)

These could go to chicken.unsafe.strings or whatever: solves problem
with naming, no additional mental load - it is easy to guess what you
will get by using functions from this module.

I prefer to avoid "for internal use only" APIs. It is better to
modularize further using self descriptive names.

Regards, Oleg

reply via email to

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