On Tuesday, 31 March 2015 at 12:49:36 UTC, Vlad Levenfeld wrote:
Is there any way (or could there be any way, in the future) of getting the code from lambda expressions as a string?

I've noticed that if I have an error with a lambda that looks like, say
  x=>x+a

the error message will come up referring to it as
  (x) => x + a

so some level of processing has already been done on the expression. Can I get at any of it during compilation? It would be useful for automatic program rewriting.

Short answer: no. .codeof for functions is something I've wanted for ages, but no movement so far.

Reply via email to