Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
This pull request looks a bit like #1163. Please incorporated the comments of that pull request into this one.
About my comment remarks: There's some good literature about commenting and good reasons to not do it. For example Robert C. Martin "Clean Code" chapter 4.