[erlang-bugs] {packet, http} with gen_tcp:connect/2 problem

Sverker Eriksson sverker@REDACTED
Thu Oct 29 17:41:46 CET 2009


Kostis Sagonas wrote:
> :
>
> Programs that explicitly match on {error, {http_error, _}} rely on 
> something undocumented and they should know better that this could 
> change at any time.
>
> Moreover, dialyzer exists and automatically identifies all these 
> places in the code and is there to help users in changing them.
>
> What's the problem in making the right decision here?
>
Fear of breaking "established" applications such as Yaws and Mochiweb, I 
guess...

> Erlang has too many inconsistent return values in its key functions. 
> Does it need another one?
>
No, maybe we should muster the courage to do the right thing then...

/Sverker, Erlang/OTP



More information about the erlang-bugs mailing list