arjan / decorator

Function decorators for Elixir
MIT License
386 stars 21 forks source link

Imperative form? #6

Closed arjan closed 8 years ago

arjan commented 8 years ago

Looking at the Erlang counterpart, I see they use the @decorate annotation, instead of @decorator that we use. @decorate is maybe a bit more clear, given that's an imperative, instead of a noun.

@decorator maybe implies that we are defining a decorator, while in fact we are saying that we want to apply the decorator to the function.

@vic what do you think?

vic commented 8 years ago
@decorator maybe implies that we are defining a decorator, while in fact we are saying that we want to apply the decorator to the function.

Yep, I'd go with @decorate as you are applying a decorator to next function def.

arjan commented 8 years ago

Done!

arjan commented 8 years ago

I think I should release 1.0 now, because I'm not going to change the API anymore probably.