✨ Imports with namespacing, pub/use#216
Draft
LesterEvSe wants to merge 13 commits intoBlockstreamResearch:masterfrom
Draft
✨ Imports with namespacing, pub/use#216LesterEvSe wants to merge 13 commits intoBlockstreamResearch:masterfrom
LesterEvSe wants to merge 13 commits intoBlockstreamResearch:masterfrom
Conversation
794325d to
673e287
Compare
2931db3 to
078257a
Compare
04f3132 to
98cdec8
Compare
Contributor
|
CI is failing. Also, can you add a description or motivation to this PR? |
a1e8cea to
ead2fd4
Compare
Collaborator
Author
I have updated the main PR description to include the detailed motivation for issue #155 and a technical breakdown of the import semantics introduced here. Regarding the failing CI, @Sdoba16 and I are looking into that now. It will be fixed soon. |
a5f415a to
a2e29d5
Compare
6284181 to
2ee0274
Compare
74cc5a5 to
bae899e
Compare
ce8d6c3 to
338b622
Compare
338b622 to
36252c3
Compare
- Refactor AST to include tests and modules - Add simple tests for module flow
36252c3 to
6c34920
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
The main goal of this PR is to enable an analogue of the OpenZeppelin library to exist in the SimplicityHL ecosystem. By introducing official compiler support for imports, we significantly increase code reusability and speed up application development. For projects heavily focused on security, this also allows developers to eventually "flatten" the code and audit all functions without external dependencies.
Checklist
pubandpub useto control local scope versus re-exporting.use m::name;and explicit aliasing (as).