Open skejeton opened 2 years ago
Another option I thought of is this:
import ("umbox:tar/tar.um")
import ("src:d_util.um")
Essentially, namespaces for import directories. This case is better since there's a clear distinction, and umbox packages will be disambiguated from sources with same path.
Module import paths will allow to specify a path to load modules from. It is similar to
-I
flag in C. For example, this could be shortened:Into
By specifying import path:
Specifying import path shall be possible through API. Import paths are prioritized in order they are added. We first check file near "main.um". Then we start checking folders in the import paths, FIFO way, by checking first until last and finding if one matches, or error if no matches.