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

Create an explicit stdlib #15

Open
AlexGustafsson opened this issue Aug 31, 2021 · 0 comments
Open

Create an explicit stdlib #15

AlexGustafsson opened this issue Aug 31, 2021 · 0 comments

Comments

@AlexGustafsson
Copy link
Owner

There's a possibility that the current builtin mechanics will not scale well. Instead, create a stdlib where the imports have paths like std/io to use like so:

io::print("hello")

Perhaps some functions, such as print should be kept a builtin? Others, such as split, range etc. should perhaps not. They could even become a "property function" like in JS - "hello".split("\n"), Array.range(0, 2) etc.

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