chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] New string manipulation module


From: Jörg F . Wittenberger
Subject: Re: [Chicken-users] New string manipulation module
Date: 21 Feb 2013 20:50:16 +0100

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 step?

I'd disagree.

I feel that using the (personally *much* appreciated) rename feature
chicken provides to disambiguate at the users choice would be the
best way to deal with this kind of matter.

Adding this simple statement doesn't make much of a difference to
your source code.  However *not* having the feature at hand and
have to rename all identifiers manually when you want to exchange
one implementation for another is a real burden.

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
rename as god intended.

This makes a yet another file to maintain as trade off for a single
s-expression containing three symbols…

add1 (except if there is an `exchange' procedure in the API). :-)

Mario




reply via email to

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