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

jule: update use declarations #115

Merged
merged 34 commits into from
Oct 1, 2024
Merged

jule: update use declarations #115

merged 34 commits into from
Oct 1, 2024

Conversation

mertcandav
Copy link
Member

This PR updates Jule's use declaration system. The new system is much simpler and path-based. It is easy to switch. The manual recommends using an alias for each package. Source codes that do not have selection in use declarations and use alias can be easily adapted. This breaker is a change, though.

Pros of new use declarations;

  • It has a positive contribution to compilation time. Analysis costs are less.
  • It is mostly shorter and simpler.
  • It supports readability with its new namespace/alias system.
  • Supports automatic alias assignment by the compiler. Except in exceptional cases, the developer does not need to provide custom aliases.

@mertcandav mertcandav added the compiler Related with compiler/compile-time label Oct 1, 2024
@mertcandav mertcandav merged commit c0402d8 into master Oct 1, 2024
0 of 42 checks passed
@mertcandav mertcandav deleted the update-use branch October 1, 2024 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler Related with compiler/compile-time
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant