Hi Jonatan, Yes, the tracer does not receive the macro arguments, but we did not have a use case for such either. The biggest concern is that we could allow tracers to evaluate and execute arguments and that’s a very risky line to cross.
Maybe this is the use case we were waiting for but then we would need to expand if this would actually be better than macros. On Sun, Oct 10, 2021 at 17:20 Jonatan Männchen <maennc...@joshmartin.ch> wrote: > Hi All, > > I have recently had some issues with the Gettext library (the issues are > irrelevant for this suggestion) and thought that maybe the Gettext > Extraction could be rebuilt using compiler tracers. > > The basic idea was to collect all modules and gettext calls via a compiler > tracer and replace the existing extractor with that. (See example in > Attachment) > > However, there seems to be no way to access the args for a call for any of > the following trace events: remote_function, remote_macro, local_function, > local_macro. > > Did I overlook something or is there currently no way to access the arg > values? > > If not, I think it could be a great addition to somehow make those values > accessible. > > I'm playing around for the first time with compiler tracers. Therefore I'm > sorry if this request doesn't make sense or this is a completely wrong > approach. > > Thanks & Best, > Jonatan > > -- > 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 elixir-lang-core+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/elixir-lang-core/a51ab9f7-30d3-4fa6-a7a3-b3653bc52470n%40googlegroups.com > <https://groups.google.com/d/msgid/elixir-lang-core/a51ab9f7-30d3-4fa6-a7a3-b3653bc52470n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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 elixir-lang-core+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/CAGnRm4%2BROHMkbVj7-wG2ntK%2BckOg947btO4%3DcfuOBXf2e0jqCQ%40mail.gmail.com.