lihaoyi / macropy

Macros in Python: quasiquotes, case classes, LINQ and more!
3.28k stars 178 forks source link

log with block? #97

Closed LeoUfimtsev closed 5 years ago

LeoUfimtsev commented 5 years ago

Is it possible to apply log[..] to a block of code as oppose to individual statements?

azazel75 commented 5 years ago

No, it's actually defined as an expr macro so it only works on single statements. Its code would need some modifications to work on multiple statements