Hacker News new | ask | show | jobs
by bjourne 18 days ago
Namespaces as first class objects. Janet namespaces symbols by renaming them. It's not the same thing.
1 comments

The `import` macro extends the current environment with prefixed symbols from another environment. But the environment is a first-class object that you can hold and manipulate and use in arbitrary ways — `require` is the lower level primitive that `import` is built on.