[erlang-questions] [ANN] hackney 0.4.1 released

Benoit Chesneau bchesneau@REDACTED
Tue Jun 11 21:35:11 CEST 2013


On Tue, Jun 11, 2013 at 7:52 PM, Anthony Ramine <n.oxyde@REDACTED> wrote:
> Got a better idea, with macros:
>
>         https://github.com/benoitc/hackney/pull/26
>

Thanks! I actually like the idea. I will test it asap. Maybe another
way (and simpler) would be having all methods set in their own module.
but anyway will play with it :)

- benoit

> --
> Anthony Ramine
>
> Le 11 juin 2013 à 13:59, Thomas Allen a écrit :
>
>> Hi Benoit,
>>
>> On Tue, Jun 11, 2013, at 12:27 AM, Benoit Chesneau wrote:
>>> The main reason I'm doing a parse transform is to not have to worry
>>> about adding a method or handling different cases, for example:
>>>
>>>    hackney:get(URL)
>>>
>>> but also:
>>>
>>>    hackney:get(URL, Headers)
>>>
>>> or:
>>>
>>>    hackney:get(Url, Headers, Options)
>>>
>>>
>>> and do that for each method.
>>
>> In that case, I'd think the macro approach is probably the least
>> error-prone and easiest to maintain.
>>
>> Yours in bikeshedding,
>> Thomas
>> _______________________________________________
>> erlang-questions mailing list
>> erlang-questions@REDACTED
>> http://erlang.org/mailman/listinfo/erlang-questions
>Thanks!



More information about the erlang-questions mailing list