Overriding 'require' in Clojure?
Posted
by StackedCrooked
on Stack Overflow
See other posts from Stack Overflow
or by StackedCrooked
Published on 2010-04-25T18:39:08Z
Indexed on
2010/04/25
18:43 UTC
Read the original article
Hit count: 182
clojure
Would it be possible to override the 'require' command so that it will try to download a certain resource if it was not found on the local machine. For example:
(require 'examples.introduction)
; if not found => download from the net
; (url: http://media.pragprog.com/titles/shcloj/code/examples/introduction.clj)
© Stack Overflow or respective owner