On Thu, Jul 27, 2017 at 07:04:52PM -0700, Ricardo Neri wrote:
However using the union could be less readable than having two almost identical functions.
So having some small duplication for the sake of clarity and readability is much better, if you ask me. And it's not like you're duplicating a lot of code - it is only a handful of functions.