feymartynov / ex_operation

A library for making domain operations in Elixir
Other
35 stars 5 forks source link

Step functions #1

Open pyromaniac opened 5 years ago

pyromaniac commented 5 years ago

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 commented 5 years ago

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".