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

A Better Module System #42

Open
13 tasks
mehcode opened this issue Aug 28, 2015 · 0 comments
Open
13 tasks

A Better Module System #42

mehcode opened this issue Aug 28, 2015 · 0 comments
Milestone

Comments

@mehcode
Copy link
Contributor

mehcode commented Aug 28, 2015

  • Check for absolute modules in ./arrow_modules
  • Check for absolute modules in ~/.arrow_modules
  • Check for absolute modules in $BIN/../lib

  • arrow --install git+<git url> — Clone and install to ./arrow_modules (same as npm)
  • arrow --uninstall <name>

  • Import module (relative to the current file)
import "./some_file" as module;
  • Import module (relative to an installed module path; resolved similar to node/python)
import "std" as std;
  • Shorthand for the above
import std;
  • Import one or more items from a module
from "./some_file" import a, b, c;
  • Import all items from a module
from "./some_file" import *;
  • Export a module (instead of importing it)
export "./other_file" as module;
  • Export one or more items from a module (instead of importing)
from "./some_file" export a, b, c;
  • Export all items from a module (instead of importing)
from "./some_file" export *;
@mehcode mehcode changed the title Import / Export A Better Module Systesm Aug 28, 2015
@mehcode mehcode changed the title A Better Module Systesm A Better Module System Aug 28, 2015
@mehcode mehcode modified the milestone: v0.1.0 Aug 30, 2015
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

1 participant