Raphael personal blog
Implementing Rust's dbg! in Python
Rust has an amazing dbg macro that lets you quickly set up an expression printer that will also put in the source line. It also returns the value of the expression so you can even easily inline the printing when you want to!
- Points
- 121
- HN comments
- 49
- Submissions
- 1
- Cited by
- 0 commenters
Software EngineeringProgramming Languages2020
On Hacker News
| Submitted | Title on HN | Points | Comments |
|---|---|---|---|
| Dec 11, 2020 | Implementing Rust's dbg! in Python by soopurman | 121 | 49 |