> On 6 Dec 2016, at 19:48, [email protected] wrote:
> 
> Would it be possible to have a flag attribute to disable warnings on 
> particular modules or something? Not the greatest solution, but it could 
> potentially be enough to support DSLs and IEx helpers
> 

In DSLs you could manually upgrade the variable into a function call instead of 
relying on the compiler to do so (and emit a warning).

The AST of a variable is {name, meta, context}, while AST of a function call is 
{name, meta, args}, in case of 0-arity calls the last argument would always be 
an empty list.

Michał.

-- 
You received this message because you are subscribed to the Google Groups 
"elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/2A153D9F-C48A-4956-ADCA-7AEC03F535AB%40muskala.eu.
For more options, visit https://groups.google.com/d/optout.

Reply via email to