Yesterday, I asked a question in which I stated a primary requirement but also asked for an optional improvement. The primary requirement was answered perfectly, and I upvoted it and accepted it. Building on that answer, I was subsequently able to solve the optional improvement as well. I'd like to share the improved solution but I'm not sure of the best way to do so. I suspect I should either:
- Add another answer to my own question explaining how I was able to enhance the accepted answer (but leave the existing accepted answer as is)
- Add a comment to the existing accepted answer explaining the additions required to satisfy the optional improvement.
The problem with (2) is that I'd like to give code samples and comments are very limiting in that regard.
Obviously the person who answered the question deserves the "credit", but I also feel it benefits the community to have the additional information. How should I handle this?