[erlang-questions] Re: callback module without behavior definition?

Andrew Thompson andrew@REDACTED
Wed Apr 6 20:08:59 CEST 2011

On Wed, Apr 06, 2011 at 01:03:40PM -0500, Daniel Goertzen wrote:
> I do want to hook it into a supervisor.  If I use a proc_lib process, it
> looks like I would have to implement a message loop and some other
> callbacks.
> I guess my original question is more about what behavior statements actually
> do.  Do they just add compile-time "type" checking, or do they have some
> real runtime impact?

They're only compile-time to my knowledge. However, if you omit the
methods the behaviour expects, you will get runtime crashes that won't
be pretty.


More information about the erlang-questions mailing list