[erlang-questions] [ANN] hackney 0.4.1 released
Anthony Ramine
n.oxyde@REDACTED
Mon Jun 10 15:51:47 CEST 2013
Hello Benoit,
Why use a parse transform for such a tiny amount of boilerplate when you could have used a single macro taking a method name and generating the shortcut function?
Shortcuts work in the shell, parse transforms don't.
Regards,
--
Anthony Ramine
Le 10 juin 2013 à 15:13, Benoit Chesneau a écrit :
> On Mon, Jun 10, 2013 at 2:10 PM, Max Lapshin <max.lapshin@REDACTED> wrote:
>> what for do you use parse_transform for hackney:get ? Why you haven't
>> just made a shortcut?
>
> If I don't use parse transforms I would have to do a shortcut for each
> methods. Methods supported are:
>
> https://github.com/benoitc/hackney/blob/master/include/hackney.hrl#L1
>
> It was easier to do like this. Why?
>
> - benoit
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
More information about the erlang-questions
mailing list