[erlang-questions] Is this code tail recursive?

Robert Virding robert.virding@REDACTED
Mon Sep 20 22:22:13 CEST 2010

----- "Anthony Molinaro" <anthonym@REDACTED> wrote:

> On Fri, Sep 17, 2010 at 10:25:13AM +0000, Robert Virding wrote:
> > - Importing a function from a module provides absolutely no new
> functionality. It just saves you from having to explicitly qualify the
> function call with the module name. So if foo/1 is imported from
> module bar, -import(bar,[foo/1])., then foo(...) and bar:foo(...) are
> exactly equivalent, the compiler does the conversion internally. It
> saves you some writing. Many people frown on importing and say you
> shouldn't do it as it obscures what you are actually doing, I only use
> for importing functions from some common modules like lists.
> So for code change does this mean the new version of an imported
> module is
> called?

Yes, importing functions is pure syntactic sugar.


More information about the erlang-questions mailing list