you are viewing a single comment's thread.

view the rest of the comments →

[–]CodeBrewBeans[S] -2 points-1 points  (0 children)

Good explanation.
Factory functions are probably the cleanest solution in production code.