Skip to content

refactor(lang): remove dependency on runtime #2596

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

Merged
merged 1 commit into from
Mar 6, 2020

Conversation

jsternberg
Copy link
Contributor

@jsternberg jsternberg commented Mar 6, 2020

The lang package has been refactored to refer to the runtime using the
flux.Runtime interface instead of direct references. This prevents it
from have a dependency on the runtime and allows the structs to be used
without incurring a dependency on the runtime.

The flux.Runtime interface has been created to facilitate access to
the runtime. It is a wrapper around the existing runtime struct that is
in the runtime package.

The complete package has also had its reference to the runtime
removed. It was only used by one convenience method so that method has
been removed.

Fixes #2595.

Done checklist

  • docs/SPEC.md updated
  • Test cases written
Siteproxy
@jsternberg jsternberg requested a review from wolffcm March 6, 2020 19:21
The lang package has been refactored to refer to the runtime using the
`flux.Runtime` interface instead of direct references. This prevents it
from have a dependency on the runtime and allows the structs to be used
without incurring a dependency on the runtime.

The `flux.Runtime` interface has been created to facilitate access to
the runtime. It is a wrapper around the existing runtime struct that is
in the `runtime` package.

The `complete` package has also had its reference to the runtime
removed. It was only used by one convenience method so that method has
been removed.
@jsternberg jsternberg force-pushed the refactor/lang-stdlib branch from ddf54dd to f86b4a6 Compare March 6, 2020 19:22
Copy link

@wolffcm wolffcm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice.

@jsternberg jsternberg merged commit fe08aec into feat/use-algo-w Mar 6, 2020
@jsternberg jsternberg deleted the refactor/lang-stdlib branch March 6, 2020 21:13
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

Successfully merging this pull request may close these issues.

None yet

2 participants