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

Split @require out into its own package? #22

Closed
mbauman opened this issue Dec 23, 2014 · 5 comments
Closed

Split @require out into its own package? #22

mbauman opened this issue Dec 23, 2014 · 5 comments

Comments

@mbauman
Copy link

mbauman commented Dec 23, 2014

I discovered the @require macro by way of JuliaLang/julia#2025, and think it's extremely useful. I'd love to use it in some of my own packages. But since you can only override Base.require once, it'd make sense to have everyone share the same codebase. So would you be willing to split it out into a very simple package? Perhaps named Require.jl? Thanks!

@MikeInnes
Copy link
Contributor

Sure, I can take a look at knocking something together and documenting it.

@tomasaschan
Copy link

+:100:!

I just discovered this macro too, but through this thread on julia-users, and it would make a lot of the code I write in all kinds of contexts a lot easier to both read and write.

@mbauman
Copy link
Author

mbauman commented Dec 23, 2014

Hm, actually, if JuliaLang/julia#6884 is really going to be merged soon, perhaps this (or something like it) should live in Compat.jl?

@MikeInnes
Copy link
Contributor

From what I can tell, the API for that will be quite different, which might make merging them together tricky. Although no doubt you could build @require on top of the module system instead of by overloading require.

@MikeInnes
Copy link
Contributor

Requires.jl

Give it a whirl and let me know what you think.

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

3 participants