-
Notifications
You must be signed in to change notification settings - Fork 12.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Name overload term/type module re-export as namespace #51109
Comments
I believe this to be a duplicate of #48764 (comment). |
Thanks @MartinJohns. That issue was about the That issue was/is closed with the counter-example of importing a class. What I'm saying here wouldn't be closed because of that counter example. I'm merely saying it works with |
I have been trying to get something like this working for literal years now. It would dramatically help write better functional/Rust-module-style code. |
@jasonkuhrt check out this related issue/discussion: |
Another relevant discussion... |
Good overview of the resulting friction this would alleviate here: |
Here's a good example of the awkwardness this causes for users of @gcanti's fp-ts... |
Here is my dream syntax... |
Suggestion
π Search Terms
I wasn't sure what terms to be searching for this.
β Viability Checklist
My suggestion meets these guidelines:
β Suggestion
Currently this is possible:
However this is not possible:
π Motivating Example
I want to be able to reuse a name for a type and namespace for more streamlined downstream usage.
π» Use Cases
All the same use-cases there already are today for
namespace
name overloading between terms/types.The text was updated successfully, but these errors were encountered: