This is the mail archive of the kawa@sources.redhat.com mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: call-with-input-url


Per Bothner <per@bothner.com> writes:

> Bruce Lewis wrote:
> > I'd like to submit a patch to implement/document call-with-input-url.
>  > Would such a patch be accepted?
> 
> I don't know - what does it do?  Is it just a generalization of
> call-with-input-file to URLs?  I guess that would be useful to have.

Yes, that's it.

> If it's a relative URL, should it resolve resolve to the (base-uri)?
> 
> Would it make sense to support "auto-uri" i.e. allow absolute url or a
> filename for call-with-input-file, as recently changed for load?

A more general call-with-input-uri function could do all that.  I just
wanted to do a quick/easy call-with-input-url function.

> I've given up trying to be consistent about what is and isn't
> standard. However, I am trying to place new code in gnu/*/* or
> kawa/lib rather than kawa/standard or kawa/lang.  call-with-input-file
> and call-with-output-file should probably be moved to ports.scm.

OK, I'll do a patch against kawa/lib/ports.scm, which you can move to
gnu/*/* whenever you get to it.

> If it's a Scheme-specific file or trivial wrapper it is better in
> Scheme than in Java.

Trivial wrapper based on java.net.URL.openStream().


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]