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

Step functions #1

Open
pyromaniac opened this issue Feb 17, 2019 · 1 comment
Open

Step functions #1

pyromaniac opened this issue Feb 17, 2019 · 1 comment

Comments

@pyromaniac
Copy link

Hello, starting to look into the package and I think it is great. Thanks for it!

What do you think about the following extension:

step(:foo)

def foo(txn) do

end

So if no callback is passed it will try to use the function with the corresponding name.

What is txn btw? Can't get the abbreviation :(

@feymartynov
Copy link
Owner

feymartynov commented May 16, 2019

Hi! Sorry for the late response, missed the issue.
Glad you like the library.

So if no callback is passed it will try to use the function with the corresponding name.

Interesing idea. It certantly adds brevity but on the other hand it may look like implicit behaviour.

What is txn btw? Can't get the abbreviation :(

txn is short for "transaction".

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