Re: [elixir-core:9482] Re: Proposal: IO.error/2

2020-05-15 Thread José Valim
1. Yes, the granularity you get is per macro. 2. When emitting the warning, do "Macro.Env.stacktrace(__CALLER__)" to get the actual caller. You may also need to look at the AST to get the proper line. Note you would need to do the same if we were to introduce some sort of IO.error. On Fri, May 15

Re: [elixir-core:9482] Re: Proposal: IO.error/2

2020-05-15 Thread Dallin Osmun
Hi José, Thanks for the helpful response! What you are saying makes sense. I must admit I don't have a very advanced knowledge of metaprogramming in elixir so I'll have to learn/practice a lot more before I can come up with an informed response. I tried out your suggestion and wanted to report