Stack Overflow is not a discussion forum, but a Q&A site (as are all Stack Exchange sites). "Answer" posts should answer the "Question" that was asked. While an interesting post, it constitutes a response to another post, not an answer. I really encourage you to post
actual code (not just hypothetical example code as that would be off-topic) up on
Code Review if you want to have your working code peer reviewed and discussed inside out. Cheers! —
Mat's Mug 53 secs ago