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

SubmittedTitle on HNPointsComments
Dec 11, 2020Implementing Rust's dbg! in Python by soopurman12149

More from Raphael

All 3 posts →

Related posts from the same era