-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feature: method to automatically generate alias names adds aliases based on pre-defined strategies #22
Comments
I think I will also add This would allow the user to alias their method the same way no matter what it's name was, so if the name was "bar" and we had asked for |
added
The real different between
|
Describe the solution you'd like
a decorator (something like @auto_alias) that accepts string options, enum flags or boolean parameters (or some combination)
that generates aliases, so make these use cases easier:
aardvark
would generatea
,aa
,aar
,aard
, etc. could accept an Sequence of ints representing indexs to terminate on, something likeshort=[1, 5]
foraardvark
would generatea
andaardv
.get_my_data_please
is given aliasgmdp
Describe alternatives you've considered
@valiases
with the exact parameters specified but this could get out of hand and turn into a lot of work to support the same use cases all at the same time. It's also static rather than dynamic. I'd need to define it per member based on it's name. The above solution would automatically change to the new aliases based on the new method name if it was ever changedThe text was updated successfully, but these errors were encountered: