OK, I get it now. subtract-in does exactly what I want. Thanks,
Mark
Racket Users list:
http://lists.racket-lang.org/users
Why not important the SRFI library with a prefix?
Sent from my iPhone
On Nov 1, 2012, at 11:43 AM, Mark Engelberg wrote:
> Thanks. Is there a simple way to do it without itemizing the specific
> function names?
>
> I was caught off guard because I was using the new string-trim function.
>
One potential issue is that the Racket and SRFI functions may take different
arguments or have different semantics.
Sent from my iPhone
On Nov 1, 2012, at 11:43 AM, Mark Engelberg wrote:
> Thanks. Is there a simple way to do it without itemizing the specific
> function names?
__
You don't have to itemize any names. Just put the name after the #lang
line. I assume that's racket, but it might be racket/base. You don't need
to list anything else you include, require will already report an error if
those clash.
Carl Eastlund
On Thu, Nov 1, 2012 at 2:45 PM, Mark Engelberg
A few minutes ago, Mark Engelberg wrote:
> Thanks. Is there a simple way to do it without itemizing the
> specific function names?
The two things in the form are two require specs, and you get
everything from the first that is not provided by the second -- you
don't need to list any names.
--
What Eli linked should do that, just write:
(require (subtract-in srfi/13 racket))
That should require everything that's in srfi/13, except for names that are
already in racket.
Carl Eastlund
On Thu, Nov 1, 2012 at 2:43 PM, Mark Engelberg wrote:
> Thanks. Is there a simple way to do it witho
My point being that I'm worried if I have to itemize all the names, I might
miss a potential conflict.
On Thu, Nov 1, 2012 at 11:43 AM, Mark Engelberg wrote:
> Thanks. Is there a simple way to do it without itemizing the specific
> function names?
>
> I was caught off guard because I was using t
Thanks. Is there a simple way to do it without itemizing the specific
function names?
I was caught off guard because I was using the new string-trim function.
When I included srfi/13, I didn't realize it was going to replace
string-trim with a version that was really just a "trim left" function.
http://docs.racket-lang.org/reference/require.html#(form._((lib._racket/require..rkt)._subtract-in))
20 minutes ago, Mark Engelberg wrote:
> Is there an easy way to require everything in a given SRFI, while
> specifying that in a case of name conflict, I want to use the
> built-in racket version?
Is there an easy way to require everything in a given SRFI, while
specifying that in a case of name conflict, I want to use the built-in
racket version?
I'm specifically thinking about srfi/13, the string library. I want to
include that, but I think Racket's newly added string functions (such as
10 matches
Mail list logo