[erlang-questions] [ANN] SeqBind, Sequential Binding Parse Transformation for Erlang (Experimental)

Loïc Hoguin <>
Mon Jan 16 19:09:51 CET 2012


On 01/16/2012 07:05 PM, Tristan Sloughter wrote:
>            Q = cowboy_http_req:get_value(<<"__q">>, Request)
>            Id = cowboy_http_req:get_value(<<"__id">>, Request)
>
>
> I was confused by the pass back of Request myself. I started using
> Cowboy yesterday and wasn't sure if I needed to continue to pass the new
> Req variable on down like:
>
> {Q, R1} = cowboy_http_req:get_value(<<"__q">>, R),
> {Id, R2} = cowboy_http_req:get_value(<<"id">>, R1)
>
> And then return that R2 at the end of the function with the return tuple.
>
> 1) Do you?

You do.

> 2) "Again, the problem no longer exists!" -- What did that mean?

That was a quote from the previous email from Tim. :)

-- 
Loïc Hoguin
Erlang Cowboy
Nine Nines



More information about the erlang-questions mailing list