6

Here's my question: ES6 generators- are they really an alternative to async/await?

A user posted a comment on my question that answered the question for me:

This may help: http://davidwalsh.name/async-generators. async/await can be implemented as syntactic sugar over generators + promises

To which I replied:

Thanks for the link- very helpful. If you want to post that as an answer I'd accept it. Seems the answer to my question is yes.

In the meantime another answer has been posted. I feel that the initial response in the comments section "answered" my question and is more helpful than the answer in the answers section.

What should I do? Edit the answer? Post another answer?

5
  • 4
    Don't edit the answer against an answerer's intent. You can self-answer if you want and mark that as the accepted answer.
    – Compass
    Commented Dec 4, 2014 at 18:42
  • 3
    Oh, and give credit to the person who gave you the comment.
    – Compass
    Commented Dec 4, 2014 at 18:47
  • 1
    Now that there's a comment that answers your question, I am sooo tempted to write a useless answer to this question. Commented Dec 4, 2014 at 18:49
  • @ThisSuitIsBlackNot- ha I was thinking the same thing Commented Dec 4, 2014 at 18:51
  • 1
    @Compass thank you for your response- if you'd post it as an answer I'd accept it. Commented Dec 4, 2014 at 18:52

1 Answer 1

8

Editing an answer should only be done to improve an answer. It should not be done to change the content of an answer, i.e. if the user recommends using an Array, it is wrong to edit it to say ArrayList. The author's intent should be maintained when an answer is edited, even if it's wrong, or not as good as the correct answer.

That's not to say that nothing should be done with the answer, even if it's not as good as the answer you found most helpful. If the answer is helpful, you do have the discretion to upvote it as a possible answer, even if it isn't the best answer.

If a comment is a link-only answer as you've posted, you should explain the answer and expand on it so that it qualifies as an answer, because link-only answers are undependable and grounds for deletion/editing.

Original comment:

This may help: What do you do when the only answer to your question is not as helpful as one of the comments on the question?

can be converted into an answer:

The comment provided by @Compass (What do you do when the only answer to your question is not as helpful as one of the comments on the question?) help solved the issue.

The link points out that editing an answer that changes the author's intent is not a good course of action and instead recommends that a new self-answer be written. The self-answer should strive to be a quality answer that is not link-only, and give credit to the original comment writer.

2
  • 1
    makes sense, maybe the comment that I found helpful was not posted as an answer because it would have been considered a link-only answer. Commented Dec 4, 2014 at 19:17
  • 1
    I see what you did there (and I like it). Commented Dec 4, 2014 at 21:02

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .