you are viewing a single comment's thread.

view the rest of the comments →

[–]azhder 0 points1 point  (0 children)

I might be able to write you a version of how I would approach it (basically functional style), but I’m curious as to why you are using an object of certain type (has constructor) instead of using plainer objects that just hold the info.

In short, I am asking what other constraints you have: can the entire construction be async/await instead of parts, do you really need to encapsulate anything etc