[erlang-questions] [ANN] SeqBind, Sequential Binding Parse Transformation for Erlang (Experimental)
Tristan Sloughter
tristan.sloughter@REDACTED
Mon Jan 16 19:05:08 CET 2012
>
> 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?
2) "Again, the problem no longer exists!" -- What did that mean?
Tristan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20120116/fbe5c07d/attachment.htm>
More information about the erlang-questions
mailing list