Skip to content

Rename+export bind? #3

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

Closed
jw3126 opened this issue Jun 18, 2020 · 4 comments
Closed

Rename+export bind? #3

jw3126 opened this issue Jun 18, 2020 · 4 comments

Comments

@jw3126
Copy link
Contributor

jw3126 commented Jun 18, 2020

I really like the bind function and would like to export it. Unfortunately its name clashes with Base.bind:

help?> bind
search: bind binomial BigInt begin SubString bitstring disable_sigint reenable_sigint SubstitutionString AbstractString AbstractUnitRange AbstractIrrational

  bind(chnl::Channel, task::Task)
...

So I think it is a good idea to rename bind and @bind. Some possible names: curry, fix, partial, fixargs, bindargs

@goretkin
Copy link
Owner

I like fix, and maybe also renaming Bind to Fix, too. Makes the connection to Base.Fix1and Base.Fix2 clear.

I like partial, too. Though I'm sure there are packages that use partial to mean "partial derivative", so perhaps it's best to avoid it.

I named the package Curry, but as far as I know, it's really about partial application: https://stackoverflow.com/a/23438430/415404 .

@jw3126
Copy link
Contributor Author

jw3126 commented Jun 18, 2020

Ah thanks, I did not know what currying really meant until now.

@goretkin
Copy link
Owner

What do you think of Fix, fix, @fix?

@jw3126
Copy link
Contributor Author

jw3126 commented Jun 19, 2020

I like fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants