Rust Articles, Tutorials & News

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!

Read more »

Monads and GATs in Nightly Rust

I saw a recent Reddit post on the advances in Generic Associated Types (GATs) in Rust, which allows for the definition of a Monad trait. In this post, I’m going to take it one step further: a monad transformer trait in Rust!

Read more »