Skip to content
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

Specify argument names with fun hooks? #163

Open
robinp opened this issue Apr 18, 2016 · 2 comments
Open

Specify argument names with fun hooks? #163

robinp opened this issue Apr 18, 2016 · 2 comments

Comments

@robinp
Copy link

robinp commented Apr 18, 2016

Hello. Is it possible to tell the fun hook what name to use on the various generated arguments? Instead of just a1, a2 etc. Thanks!

@robinp robinp changed the title Specify argument names and/or docstrings with fun hooks? Specify argument names with fun hooks? Apr 18, 2016
@RyanGlScott
Copy link
Member

Not that I'm aware of, no. Is there a particular reason why you'd need the
arguments to have certain names?
On Apr 18, 2016 2:12 PM, "Robin Palotai" notifications@github.com wrote:

Hello. Is it possible to tell the fun hook what name to use on the various
generated arguments? Instead of just a1, a2 etc. Thanks!


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#163

@robinp
Copy link
Author

robinp commented Apr 18, 2016

It would be nicer to read - for example, if there are three Bool arguments, would be nice to give descriptive names to them. Though I found you can put docstrings on the types, which alleviates the problem slightly.

One could argue that the wrapped functions are low-level and probably need a higher level wrapper with proper names - but still feel it would be useful to have descriptive names at the low level too.

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