2 ms·
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 unsur
by mutatio 5y 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.
- codeptualize 5y agoNot 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.