Use record syntax to make code more concise

I was accidentally reading some old documentation where the code used the record syntax and when I switched over to the newer document, I didn't find it so clear.

So this is either a question as to why the record syntax was removed (with a nice diff showing what I am talking about) or a useful pull request for something that could be very slightly improved.