[erlang-patches] gen_server broken !!

Claes Wikstrom klacke@REDACTED
Thu Feb 21 22:07:50 CET 2008


Matthew Dempsky wrote:
> On 2/21/08, Claes Wikstrom <klacke@REDACTED> wrote:
>>  This is something that has bothered me for quite some time.
>>  There is no way to write a function which calls
>>  gen_server:start_link() that then returns a nice controlled error.
> 
> I can imagine uses for that, but I think crying "gen_server broken !!"
> over this is a bit sensational.

I know - I chose the mail title mostly for fun. Nevertheless gen_server
as it is now is not suitable for transient gen_servers where the
init() cb may return an error.
If this is your usecase it is better to roll your own server - which
is boring.

This patch can be made completely backwards compat and should be
added in some form.


/klacke



More information about the erlang-patches mailing list