Skip to content

With "Unquoted Imports" disallow unquoted part of library names. #4262

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 2 commits into from
Feb 13, 2025

Conversation

munificent
Copy link
Member

In #4038, Lasse suggests that we shouldn't allow unquoted part of directives but change what they mean to be package references since that will likely just break silently and confuse users. Unquoted imports (with the new proposed semantics) in part directives aren't really useful anyway since parts should always be in the same package and the quoted syntax is shorter for that.

So this PR changes the proposal to not apply the new syntax to part and part of directives. It also makes a language versioned breaking change to remove support for unquoted library names in part of directives entirely since the syntax is long deprecated, problematic, and would become very confusing in the context of other unquoted imports.

@dart-lang/language-team, PTAL since this proposal is already accepted so a change should be run by the whole team.

Fix #4038.

@munificent munificent requested a review from lrhn February 12, 2025 01:09
Copy link
Member

@lrhn lrhn left a comment

Choose a reason for hiding this comment

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

Fix does not fix all. Otherwise awesome :)

@munificent munificent merged commit 5226bc7 into main Feb 13, 2025
2 of 3 checks passed
@munificent munificent deleted the no-unquoted-part-of branch February 13, 2025 23:30
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.

URI shorthands, not for parts
2 participants