The form import("name") has existed since the earliest days of MiniD. Originally it was there because imports were built into the language and there was no other way to import modules with dynamically-generated names. But today imports are just syntactic sugar for calling modules.load so there's not much benefit. Sure, it gives you symbol aliasing, but when you're using dynamically-generated names, you're proooobably not going to use that.
The form
import("name")
has existed since the earliest days of MiniD. Originally it was there because imports were built into the language and there was no other way to import modules with dynamically-generated names. But today imports are just syntactic sugar for callingmodules.load
so there's not much benefit. Sure, it gives you symbol aliasing, but when you're using dynamically-generated names, you're proooobably not going to use that.