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


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.

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?

Should I put Scheme into
kawa/lib/ports.scm as with call-with-input-string, or Java someplace
else.  (call-with-input-file is in kawa/standard, but then it's
standard.)

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.


If it's a Scheme-specific file or trivial wrapper it is better in Scheme than in Java. If it is non-trivial code that might be useful to re-use for other languages it might be better in Java - but doesn't have to be.
--
--Per Bothner
per@bothner.com http://per.bothner.com/




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