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

Module system #41

Open
thinker227 opened this issue Jul 2, 2024 · 0 comments
Open

Module system #41

thinker227 opened this issue Jul 2, 2024 · 0 comments

Comments

@thinker227
Copy link
Owner

Implement a system for importing and exporting functions from different files/modules.

A couple alternatives for a basic syntax:

from "./path/to/module" import {a, b, c}
// Very function-like
import ./path/to/module(a, b, c);
// Javascript-y
export func f() => ...;
// Function-like
export(f);
func f() => ...;

Additionally it would be somewhat nice to be able to import/export things as aliases.

(this issue is a heavy work in progress, more research should be done on how to implement a decent module system)

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