-
-
Notifications
You must be signed in to change notification settings - Fork 504
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
More friendly aliases? #1576
Comments
Function aliases would in a sense fragment the ecosystem and I'm not sure it makes things any less confusing; the inevitable question that follows from a beginner is "what's the difference between these?". Additionally, the adherence in some cases (though not with Sorry to be so negative - how to make the library beginner-friendly is certainly something that deserves attention, and I've never liked this naming choice either. Just my two cents on this specifically. |
I think those are very fair points! I'm open to other alternatives as well, where e.g. in the documentation we add "common alternatives" so if you hover / if you check out the documentation, you also see other names you might be more used to to help understand what a function does. This would also help with transitioning to other languages. I get your point about more fp languages but on the other hand, every language / library seems to use different names, so I'm not sure if that's 100% fair. I think one of the reasons rust doesn't seem to have a problem with |
Some way to find |
What could be really cool is on top of that to have typescript definitions for |
🚀 Feature request
I think fp-ts is an awesome library but the name of the functions is not always:
Current Behavior
Desired Behavior
Suggested Solution
Add a bunch of aliases to make it more beginner friendly and potentially deprecate the old ones (and remove in v3) or ship both
Who does this impact? Who is this for?
This will help with beginners and spreading adoption of fp-ts. In my team, we love fp-ts but we fear it can make the codebase harder to understand, especially because the names are very academic / haskelly and are not self-evident in what they do.
Describe alternatives you've considered
If you are open to it, I'm happy to help in picking better names. I just gave one example but I think there are others.
The text was updated successfully, but these errors were encountered: