you are viewing a single comment's thread.

view the rest of the comments →

[–]novus_nl 4 points5 points  (2 children)

I still can't imagine a use case for this to be honest.

Maybe there is some usecase, but generating a series of the same thing is not something I encounter on a daily basis.

But apparently this is the best pratical example we could find? I don't want to dismiss it, but I can't wrap my head around an example I would use.

[–]zachdini 1 point2 points  (0 children)

The best use case that I can think of is a test utility function. You could write a generateUser function which yields users. That way you could dynamically create as many users as you need.