[racket] require url?

From: Noel Welsh (noelwelsh at gmail.com)
Date: Fri Apr 8 09:05:10 EDT 2011

It has been talked about a lot, but no-one has implemented this
feature AFAIK. Should be possible, as require is extensible.

Go for it, tiger ;-)


On Thu, Apr 7, 2011 at 4:01 PM, Eric Tanter <etanter at dcc.uchile.cl> wrote:
> Hi all,
> In the same way that it is possible to require a file given a local path:
> eg.
> (require (file "/home/..../foo.rkt"))
> I'm looking for a way to require a file given a URL:
> eg.
> (require (url "http://tmp.barzilay.org/defmac.ss"))
> The above does not work because url is not a require sub-form. file doesn't work either because it seems to convert the URL to a local path
> ("/http:/tmp.barzilay.org/defmac.rkt")
> Is there a way to do that?
> I know that the best option is a planet package, but that's a bit heavyweight for my current needs.
> Thanks,
> -- Éric

Posted on the users mailing list.