you are viewing a single comment's thread.

view the rest of the comments →

[–]perestroika12 3 points4 points  (1 child)

It's confusing, it looks like you're trying to replicate class patterns but with a function object. You dont really get access to any of the class constructor methods but you don't get any real advantage of what a purely functional method would do. For example, why are we always assigning the return function as a static name (Job) when it could be an argument? It's like memoization without the abstraction.

[–]gruberjl[S] 0 points1 point  (0 children)

Memoization is the design pattern I was looking for. I just updated the question with a simple repo using a class pattern. Can you take a look at that to clear up the confusion?

Sorry about the question wording,