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

Thanks, TIL! Obviously I have no experience in Nim. This convention reminds me of Perl, which works much the same way.

How is it possible, then, to call a function that lives in a different namespace as part of a dot-chain of methods?

The Elixir approach does not rely on currying; like much of the language's fancy parts, it's a macro.



Nim generally doesn't use namespaces, so… that's how.

I didn't even know Elixir had macros…


Elixir is a homoiconic language with hygienic macros. Macros are a great tool when you need them!




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: