Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Warn about redundant import URLs #3331

Open
Tracked by #3921
ggreif opened this issue Jun 23, 2022 · 0 comments
Open
Tracked by #3921

Warn about redundant import URLs #3331

ggreif opened this issue Jun 23, 2022 · 0 comments

Comments

@ggreif
Copy link
Contributor

ggreif commented Jun 23, 2022

Drive-by comment from @rossberg

I wonder whether the Motoko docs should point out that imports are proper URLs, and as such, you never need to (or should) write relative paths like "./xyz", since that's always equivalent to "xyz" (unlike in JavaScript frameworks, which fabricated their own incoherent conventions).
Perhaps the Motoko compiler could even warn about such redundant URLs?

@crusso crusso mentioned this issue Apr 4, 2023
79 tasks
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant