DEV Community

Discussion on: Explain Deno Like I'm Five

Collapse
 
k4ml profile image
Kamal Mustafa

One problem with using url for importing package is that it mix the concept of package location and package name (where it being referenced in the code). You'll start discover this problem when you want to change where the package come from (for example you have to fork some package into your own repo) but don't want to change the source code to refer to the new location.

In Python for example, where package name and package location is distinct, I just need to tell the package manager the new location of the package. In the code that referencing the package I don't have to change anything as it still the same package name.

Go has been suffering this since the beginning and only recently came out with mechanism on how to handle this.

Collapse
 
k4ml profile image
Kamal Mustafa

This seem to be solved with import map but for now it still unstable feature.

deno.land/manual/linking_to_extern...