Something I noticed watching this video is that Francesc adds a lock to his struct by including it as a field named mu
. My practice is typically to add a mutex to my struct as an embedded (unnamed) type. Stylistically, I wonder, is there a reason to prefer one way to the other?