Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a require macro #20

Open
cemerick opened this issue Oct 18, 2013 · 3 comments
Open

Add a require macro #20

cemerick opened this issue Oct 18, 2013 · 3 comments

Comments

@cemerick
Copy link
Owner

It sucks to have to write a dummy ns form, just to compile/load some ClojureScript into the current REPL. ClojureScript should have a require form, just like Clojure (but of course only for REPL use, since require at runtime doesn't make sense in cljs). It doesn't yet, so add one (it has to be a macro) to Austin. This would allow you to write (require 'foo) on an Austin REPL, rather than (ns *your-current-ns* (:require foo)).

@magomimmo
Copy link
Contributor

+1

1 similar comment
@bellkev
Copy link

bellkev commented Jul 20, 2014

👍

@tupton
Copy link

tupton commented Sep 15, 2014

I think this would be a great idea, too. I wondered about and ran into this when I was watching the demo video. I appreciate the explanation of why it doesn't work now, but it sure would be good to have a more convenient way to require your ClojureScript.

rather than (ns your-current-ns (:require foo))

Is there a shorthand way to refer to the current namespace so you can do this easily and quickly, or do you always need to explicitly provide a concrete namespace?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants