Techniques for instantiating classes

1 · Axel Rauschmayer · Nov. 11, 2019, 5:20 p.m.
Summary
In this blog post, we examine several approaches for creating instances of classes: Constructors, factory functions, etc. We do so by solving one concrete problem several times. The focus in this post is on classes, which is why alternatives to classes are ignored. [Read rest of post]...