[erlang-questions] Is tuple syntax function call deprecated?
    Rory Byrne 
    rory@REDACTED
       
    Sat Mar 27 20:14:49 CET 2010
    
    
  
On Sat, Mar 27, 2010 at 09:07:06PM +0200, Kostis Sagonas wrote:
> Rory Byrne wrote:
> >Hello,
> >
> >I just noticed that the following is a valid function call:
> >
> >    {io, format}("This actually works!!\n").
> >
> >Since using {Module, Function} as a Fun in erlang:apply/2 is deprecated, 
> >I was wondering if this syntax is also deprecated?
> 
> Yes.  These function calls are deprecated but possibly still allowed in 
> some parts of the system for "backwards compatibility" reasons and for 
> giving time to applications to adapt.  Do not use this.
Good to know - thanks!
    
    
More information about the erlang-questions
mailing list