Re:Implementing Rust's dbg! in Python
by dagmx on Friday December 11, 2020 @04:01PM
(#25390925)
Like Steve said, what you're talking about is quite a bit different than what the rust dbg macro does.
[ Parent
| on HN ]
Re:Implementing Rust's dbg! in Python
by CyberDildonics on Friday December 11, 2020 @04:22PM
(#25391185)
It isn't really that different, it can just be used in inline expressions. Having the macro do nothing or just evaluating to the expression in debug mode is trivial, since a debug symbol would be defined.