[erlang-questions] Re: callback module without behavior definition?
Attila Rajmund Nohl
attila.r.nohl@REDACTED
Wed Apr 6 19:23:20 CEST 2011
2011/4/6, Daniel Goertzen <daniel.goertzen@REDACTED>:
> One thing that has bothered me about implementing gen_servers is that I have
> to create empty stubs for the callbacks that I don't need. Today I made a
> gen_server that only needs init/1, so instead of creating all those stubs I
> just commented out the behavior definition "-behavior(gen_server)."
Then why bother with gen_server, why not use erlang:spawn_link or
proc_lib:spawn_link (if you want fancy crash reports)?
More information about the erlang-questions
mailing list