Ey folks, what do you think about types that provide a static function to instantiate an array of its type?
The factory method is fine for returning 1 instance of the type, but for an array it seems weird?

struct SomeType {
static func makeMany() -> [SomeType]

Sign in to participate in the conversation
Mastodon for Tech Folks

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!