[erlang-questions] Is this code tail recursive?

Anthony Molinaro <>
Mon Sep 20 19:07:27 CEST 2010


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?

Thanks,

-Anthony

-- 
------------------------------------------------------------------------
Anthony Molinaro                           <>


More information about the erlang-questions mailing list