Static constructors in F# - when do they run?
问题 I am experimenting with various ways of creating singletons in F#, so that I understand the subtleties better. I don't know if the singleton pattern is ever useful in F#, but I wanted to experiment. And I was surprised by one result involving static constructors on those singleton instances. First I'll show you my code, and then I'll go into more details about my question. In one project called TrySingleton , I created three modules. Here's Eager.fs : module TrySingleton.Eager type EagerClass