Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Namespaces as first class objects. Janet namespaces symbols by renaming them. It's not the same thing.


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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: