Question about constructor function

Does this post help you?

In it, the UltimateLambda concludes with this:
“If you don’t intend to use a constructor function with other constructor functions, you may be better served with a plain function.”

P.S. I did remove the constructors from the Persistent tutorial example, and it worked with just plain functions as you showed, as long as the return type was manually specified.

1 Like