最佳答案
I'm looking for behavior similar to Objective-C's +(void)initialize
class method, in that the method is called once when the class is initialized, and never again thereafter.
A simple class init () {}
in a class
closure would be really sleek! And obviously when we get to use "class var
s" instead of "static var
s in a struct closure", this will all match really well!