I read the meta question Are answers using alternative tools not welcome?, but I'm not sure if my question has nuances that the other doesn't. I have no issues if you consider this is a duplicate.
I answered the question Problems iterating over several Bash arrays in one loop with an alternative solution that doesn't address the specific question, i.e. using arrays in bash. I purposefully used logic and tools not far away of OP's needs: bash and a loop, ruling out arrays. It's not like I proposed a solution with c.
My answer aims to solve the underlying goal of OP, wich may be helpful if they didn't think of using different means to solve said goal.
Then I started to doubt if this is appropriate and if is fit to the site's answering policy. Would be this welcomed, encouraged maybe, or should I refrain to do this kind of thing in the future?