[erlang-questions] Is this code tail recursive?

Boris Mühmer <>
Fri Sep 17 06:36:03 CEST 2010


2010/9/17 Ryan Zezeski <>:
> On Mon, Sep 6, 2010 at 6:31 AM, Max Lapshin <> wrote:
>> Do not forget about difference between f() and ?MODULE:f()
> would instead call that?  Actually, I just went ahead and tried that and the
> compiler gave me an error.  So I ask, what are you referring to?

There is an "->" missing after the "after 1000", did You add it?

Is "f/0" exported? The call to "?MODULE:f()" will fail, if "f/0" isn't
in the export list.


  - boris


More information about the erlang-questions mailing list