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

Tim Fletcher mail@REDACTED
Mon Jan 16 19:37:52 CET 2012


> Also, accessors return the state because Cowboy doesn't try to parse or
> read anything from the socket if it doesn't have to. That means body,
> query string, cookies and so on aren't parsed until you need them,
> saving resources in the process at the expense of a few more characters
> to write.

I see, but it's not *just* the extra characters, there's the mental
overhead of having to remember to thread the state through, and
there's the added complexity of the lazy parsing/reading which could
be harder to debug. Whether that's a good trade-off for performance I
don't know, but IMO it's not an API that would be easy to use.

Cheers,
Tim



More information about the erlang-questions mailing list