Re: [Chicken-users] New string manipulation module

2013-02-23 Thread Nicholas Van Horn
Fellow Chicken advocates, I'm pleased to announce that the string manipulation egg, now titled s, is available with chicken-install. Thanks again to all those who helped familiarize me with the Chicken way of doing things. And thanks to those unnamed people on IRC that helped with countless

Re: [Chicken-users] New string manipulation module

2013-02-21 Thread Nicholas Van Horn
On Wed, Feb 20, 2013 at 1:24 PM, Dan Leslie d...@ironoxide.ca wrote: Nice work, contributions are greatly appreciated. :) Since you're asking for constructive feedback, two things come to mind: It's a matter of taste, but IMHO it's schemier that *descriptive-variable*is preferable to

Re: [Chicken-users] New string manipulation module

2013-02-21 Thread Jörg F . Wittenberger
On Feb 20 2013, Mario Domenech Goulart wrote: 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

Re: [Chicken-users] New string manipulation module

2013-02-21 Thread John Cowan
Jörg F. Wittenberger scripsit: I've been in this situation often enough. My boiler-plate solution is to create yet another module which imports all of the prefixed (in this case this would be the s- prefixed stuff), bind them to the names sans prefix and export again. Then ipon import

Re: [Chicken-users] New string manipulation module

2013-02-21 Thread Dan Leslie
I've proposed a new type of import specifier to go with prefix, namely drop-prefix. Rather than prefixing all names, this removes the prefix from any names that have it. This would be a Good Thing to add to Chicken; Chibi already has it, and it is part of a proposal for R7RS-large. That

Re: [Chicken-users] New string manipulation module

2013-02-21 Thread Jim Ursetto
On Feb 21, 2013, at 1:50 PM, Jörg F. Wittenberger wrote: On Feb 20 2013, Mario Domenech Goulart [well, actually, I, Jim] wrote: 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,

Re: [Chicken-users] New string manipulation module

2013-02-21 Thread Jim Ursetto
On Feb 21, 2013, at 2:04 PM, John Cowan wrote: I've proposed a new type of import specifier to go with prefix, namely drop-prefix. Rather than prefixing all names, this removes the prefix from any names that have it. This would be a Good Thing to add to Chicken; Chibi already has it, and it

Re: [Chicken-users] New string manipulation module

2013-02-21 Thread Jörg F . Wittenberger
On Feb 21 2013, Mario Domenech Goulart wrote: On 21 Feb 2013 20:50:16 +0100 Jörg F. Wittenberger joerg.wittenber...@softeyes.net wrote: On Feb 20 2013, Mario Domenech Goulart wrote: join-strings, and string-match or match-string. Another is to keep the s- prefix, which is a natural

Re: [Chicken-users] New string manipulation module

2013-02-21 Thread John Cowan
Jim Ursetto scripsit: I've proposed a new type of import specifier to go with prefix, namely drop-prefix. Rather than prefixing all names, this removes the prefix from any names that have it. This would be a Good Thing to add to Chicken; Chibi already has it, and it is part of a

Re: [Chicken-users] New string manipulation module

2013-02-21 Thread John Cowan
Dan Leslie scripsit: Of course it would, and the Perl substitute command would be more general still. For that matter, you could allow an arbitrary Scheme procedure to be provided. But drop-prefix is dead simple, has precedent, and is easy to understand and use. Why not have both? Okay,

Re: [Chicken-users] New string manipulation module

2013-02-21 Thread Dan Leslie
Of course it would, and the Perl substitute command would be more general still. For that matter, you could allow an arbitrary Scheme procedure to be provided. But drop-prefix is dead simple, has precedent, and is easy to understand and use. Why not have both? -Dan

Re: [Chicken-users] New string manipulation module

2013-02-21 Thread John Croisant
On 2/21/13 9:55 AM, Nicholas Van Horn wrote: On Wed, Feb 20, 2013 at 1:24 PM, Dan Leslie d...@ironoxide.ca mailto:d...@ironoxide.ca wrote: I'm not certain what you intended by 'official', but if you meant that you'd like to see it packaged with Chicken then perhaps you should

Re: [Chicken-users] New string manipulation module

2013-02-20 Thread Dan Leslie
Nice work, contributions are greatly appreciated. :) Since you're asking for constructive feedback, two things come to mind: It's a matter of taste, but IMHO it's schemier that /descriptive-variable/ is preferable to /desc-var/, so in your case /s-foo/ could easily be /string-foo/. However, I

Re: [Chicken-users] New string manipulation module

2013-02-20 Thread Mario Domenech Goulart
Hi Nicholas, On Wed, 20 Feb 2013 12:36:22 -0500 Nicholas Van Horn vanhorn...@gmail.com wrote: I'm new to Chicken (and scheme for that matter), but I'm eager to contribute. I've been working on several text processing projects for which I've ported an Emacs-lisp string manipulation library to

Re: [Chicken-users] New string manipulation module

2013-02-20 Thread Jim Ursetto
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

Re: [Chicken-users] New string manipulation module

2013-02-20 Thread Mario Domenech Goulart
Hi, On Wed, 20 Feb 2013 14:46:20 -0600 Jim Ursetto zbignie...@gmail.com 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