[erlang-questions] [ANN] hackney 0.4.1 released
Anthony Ramine
n.oxyde@REDACTED
Tue Jun 11 19:52:22 CEST 2013
Got a better idea, with macros:
https://github.com/benoitc/hackney/pull/26
--
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
More information about the erlang-questions
mailing list