JarrettBillingsley / Croc

Croc is an extensible extension language in the vein of Lua, which also wishes it were a standalone language. Also it's fun.
http://www.croc-lang.org
79 stars 12 forks source link

Remove 'parameterized import' #144

Closed JarrettBillingsley closed 9 years ago

JarrettBillingsley commented 9 years ago

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.