[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] New string manipulation module
From: |
Mario Domenech Goulart |
Subject: |
Re: [Chicken-users] New string manipulation module |
Date: |
Wed, 20 Feb 2013 16:35:32 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) |
Hi,
On Wed, 20 Feb 2013 14:46:20 -0600 Jim Ursetto <address@hidden> wrote:
> I think it sounds good as an official egg; although there's a lot of
> overlap with SRFI-13 it's not bad to have another API.
>
> The main thing I'd suggest if making it official is that, as a port
> of the s library, to name it something like "s" or "s-strings"
> instead of "strings", since the latter sounds like it would be the
> de-facto strings library for chicken. By convention as a port of
> s.el I think "s" is the most appropriate name. But I'm not sure if
> anyone else would agree. (Just don't name it "slib"!)
I agree.
> I also think it's ok to keep the explicit s- prefix on your
> procedures. Although Chicken does support module prefixing, having
> procedures like "join", "matches?", "equals?" and "match" in the
> first place is not very descriptive, and may conflict with
> commonly-used names. However, "titlecase" is immediately obvious.
> One option is to disambiguate the names, like "string-join" or
> "join-strings", and "string-match" or "match-string". Another is to
> keep the s- prefix, which is a natural grouping. Or you could
> require the user to prefix on import, but if that's always needed due
> to conflicts, why make them go through the extra step?
add1 (except if there is an `exchange' procedure in the API). :-)
Mario
--
http://parenteses.org/mario
- [Chicken-users] New string manipulation module, Nicholas Van Horn, 2013/02/20
- Re: [Chicken-users] New string manipulation module, Dan Leslie, 2013/02/20
- Re: [Chicken-users] New string manipulation module, Mario Domenech Goulart, 2013/02/20
- Re: [Chicken-users] New string manipulation module, Jim Ursetto, 2013/02/20
- Re: [Chicken-users] New string manipulation module,
Mario Domenech Goulart <=
- Re: [Chicken-users] New string manipulation module, John Cowan, 2013/02/21
- Re: [Chicken-users] New string manipulation module, Dan Leslie, 2013/02/21
- Re: [Chicken-users] New string manipulation module, Jim Ursetto, 2013/02/21
- Re: [Chicken-users] New string manipulation module, John Cowan, 2013/02/21
- Re: [Chicken-users] New string manipulation module, Dan Leslie, 2013/02/21
- Re: [Chicken-users] New string manipulation module, John Cowan, 2013/02/21