[erlang-bugs] gen_server:init/1 is optional (18+)

Loïc Hoguin essen@REDACTED
Thu Apr 16 11:45:25 CEST 2015


Hello,

gen_server:init/1 is an optional callback and should be marked as such 
in Erlang 18+ now that it has -optional_callbacks.

It is optional because of enter_loop. It is currently not possible to 
use -behavior(gen_server) when you need to use enter_loop.

Cheers,

-- 
Loïc Hoguin
http://ninenines.eu



More information about the erlang-bugs mailing list