Question and Answers setup Trying to figure how to setup drupal 8 to function like StackExchange. 

My goal is to be able to allow users to mark answers helpful so that best answers get moved to the top. Similar to StackExchange. 

I can think of two ways to do this but would like some feedback from the experts. 

Option 1: Create content Question and add comments to it. Use flag module to flag helpful replies. Create a template for question comments so that each top replies + its replies are groped together. 

Option 2: Create Question, Create comment type Answer, Create a new comment type called replies and attach it to comment type Answer. 

Or is there another alternative that I am not thinking off? 

What would be the best way to create a similar setup such as StackExchange?
Your Option 1 and Option 2 seem to both implement "answers" as comments...

Another option (= Option 3) would be to implement Answers as another content type, combined with an entity reference field (multiple values allowed) added to your Questions content type.

By using a content type for both Questions and Answers, it would probaby simplify anything about voting (either Question or Answers), and you could also use the Flag module (e.g. to mark "an" answer as the "accepted" answer).

At this time it's too early (= not ready for D8 yet) for some typical other modules that could be added to this later on:


the Rules module, to implement whatever logic you'd want (eg: only question authors can flag one, and only one. answer with the fag to mark an answer as accepted.
the Userpoints module, to implement your reputation system.


PS: you probaby have a good reason why it has to be implemented in D8, but if D7 would be "good enough" (at least for now), you could implement something similar to this Option 3 by using what is explained in this answer to "How to implement a reputation based system with badges in Drupal similar to StackExchange sites?".