Arc Forum | Have you looked at the code for HN? You could look at display-comment-tree and d...

2 points by zck 540 days ago | link | parent

Have you looked at the code for HN? You could look at display-comment-tree and display-subcomments (https://github.com/arclanguage/anarki/blob/master/apps/news/...).

Basically, each comment has a list of its child comments. Then, when you're going to print out a tree, you recursively also print out child comments.




AltStyle によって変換されたページ (->オリジナル) /