Conversation
There was a problem hiding this comment.
What is the advantage of recursion in this case? The recursion parameter (next) is, in fact, an iterator. I'm not saying recursion is wrong here... But what is the advantage of recursion instead of iteration?
There was a problem hiding this comment.
it's just a little easier to read and (thus) more "elegant" - but: of course you can iterate through the list.
There was a problem hiding this comment.
Be careful with metrics like "easier to read". They are highly subjective and therefore hard to compare. The actual reason why recursion is more elegant here is the list itself. A linked list is a recursive data type. Nice solution!
selfie.c
Outdated
There was a problem hiding this comment.
usually, the number of concurrent processes is not a constant. consider changing that when it comes to forking
|
did you do a pull request for assignment02. cannot find any |
|
not yet, is delayed. i'm sorry. |
this is armin langhofer's impl of a linked list (assignment 0)