C++ to Rust – or how to render your mindset

Introduction Original Chapter 1 Update Thank you wholeheartedly for the support and the comments on this post. Some mistakes were fixed and some things are now better clarified. Also thanks to soruh for the optimization PR to the repository (already merge… Read more


Rust Context Manager

In Python there is a thing called a context manager. It looks like this: with open('file.txt') as f: # setup code runs here print f.read() # teardown code runs here do_other_thing(f) # error: f is not bound here Inside the indented block t... (more…)

Read more »