Yes, this would work. I can see that variant may prove useful for the case that you present, but it is much less elegant for the usecase which the author tries to present.
Edit: Replaced second "useful" with "elegant"
Edit: Replaced second "useful" with "elegant"
No comments yet.