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

Add import feature #17

Closed
fly-lang opened this issue Feb 11, 2021 · 2 comments · Fixed by #28
Closed

Add import feature #17

fly-lang opened this issue Feb 11, 2021 · 2 comments · Fixed by #28
Assignees
Labels
enhancement New feature or request

Comments

@fly-lang
Copy link
Owner

Related to: Syntax: define package, imports and namespace

Implements the import logic feature

A single source file of Fly code must be able:

  • to import one or more different packages,
  • to access functions into the imported packages,
  • to raise an error if two packages have the names.

Add import keywords to:

KEYWORD(auto)

@fly-lang fly-lang added the enhancement New feature or request label Feb 11, 2021
@marcoromagnolo
Copy link
Collaborator

marcoromagnolo commented Mar 23, 2021

Import each package individually:
import "packageA"
import "packageB" as "B"
import "packageC" as "."

Import grouped packages:
import ("packageA", "packageB" as "B", "packageC" as ".")

@marcoromagnolo
Copy link
Collaborator

marcoromagnolo commented Apr 20, 2021

Resolved with pull request: #22

@fly-lang fly-lang linked a pull request Aug 24, 2021 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants