News for hackers. Stuff that matters.
Re:Rust 1.48 by hangtwenty on Thursday November 19, 2020 @11:17AM (#25150974)
I am so glad to learn about these features in Rust and Elixir. I'm coming from Python originally, so I always want them!

https://docs.python.org/3/library/doctest.html

https://docs.pytest.org/en/stable/doctest.html

Re:Rust 1.48 by mcintyre1994 on Thursday November 19, 2020 @11:35AM (#25151167)
I had no idea that Python had a library for this, nice! Skimming that doc, it's especially impressive how well it looks to handle exception tracebacks.