-
Notifications
You must be signed in to change notification settings - Fork 30
refactor: WithDefault -> Or #87
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
Conversation
Doesn't seem very controversial so far 😄 My thoughts:
I'm for doing these types of changes now that we're so early in the life of Core. But I'm way of churn. On the other hand, this is probably the best time to do it, before Core has spread more. |
I like the shorter terminology. There is a related issue - lazy. Whenever we have a default I think there should be a flavor with a lazy default. F# does this. F# uses
|
😄
I don't think it does. In my mind As I've said elsewhere, consistency is a means to an end. It's a way to make it easy to remember different variants of the same function, and to easily see what's available and their differences when auto-completing. And I'm sure other ends as well. But it's not an end in and of itself. And it has significant drawbacks, such as being overly verbose and impacting readability by increasing the amount of noise.
Certainly! (Edit: Done!)
I'm not sure I understand the reasoning here, but I'm not opposed to it. I'm not personally using this yet, since it doesn't seem ready and stable enough. And I'm in no rush. If I was I'd use it via the same kind of shims I'm using between the |
bf50e4e
to
0558d0c
Compare
Time to pick this up again and push it over the finish line @glennsl ? |
0558d0c
to
4f105a1
Compare
Rebased! |
Sorry @glennsl, could I get one more rebase? 🙏 |
4f105a1
to
138f928
Compare
Done. |
Renames
mapWithDefault
tomapOr
andgetWithDefault
togetOr
across all modules.I expect this to be a bit controversial, so I suggest we do a vote on this. 👍 if you're for the change, 👎 if you're against.