Hacker News new | ask | show | jobs
by mutatio 1595 days ago
You can do this in Rust, the imports in Rust being synonymous with your aliasing of a module path.

I guess it depends on the depth of your paths, but I'm unsure what it solves, it just moves the verbosity to call sites.

1 comments

Not familiar with Rust, but I really like the ReScript (OCaml) module system.

It just gets out of the way. Verbosity is easy to prevent with "open" statements. The nice thing about those is that you can put them in a local scope where you use them (which is generally recommended).

It's just a lot more flexible and a lot less hassle.