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

Importing/Repository system #113

Open
MinecraftPublisher opened this issue May 23, 2022 · 1 comment
Open

Importing/Repository system #113

MinecraftPublisher opened this issue May 23, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@MinecraftPublisher
Copy link

This is a really big demand from any viewpoint so I have divided it into two bits:

  1. Importing of files
  2. Importing of repositories

Act 1: Importing of files

They could be done as mentioned in #111:
These are the ones that I recommend:

import JellyFile1.jelly
JellyFile1.myFunction()
import myFunction from JellyFile1.jelly
myFunction()

And these ones are suggested but not recommended.

import JellyFile1.jelly as Functions1
Functions1.myFunction()
import myFunction as func from JellyFile1.jelly
func()

Act 2: The repository system

As mentioned in #109:
Such syntax could be hosted on a GitHub gists file or a GitHub repository.

[
     {
          "name": "MyLib",
          "meta": "A library of useful functions for JellyCuts."
          "source": "https://mylib.xyz/repo/MyLib.jelly"
     },
     {
          "name": "Flash",
          "meta": "A programming language written in Jelly.",
          "source": "https://github.com/MinecraftPublisher/Flash/Flash.jelly"
     }
]
@MinecraftPublisher MinecraftPublisher added the enhancement New feature or request label May 23, 2022
@MinecraftPublisher
Copy link
Author

@ActuallyZach I recommend closing #111 and #109 now

@MinecraftPublisher MinecraftPublisher changed the title Importing system Importing/Repository system May 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant