That's interesting. I can see the motivation... it's helpful to have modules come into the world fully initialized, and initialization often involves side effects.
Is Rust going to allow side effects on initialization?
No. Having module import perform side effects delays program startup unnecessarily and makes the semantics of the program depend on the order in which modules got initialized, which is confusing.
Is Rust going to allow side effects on initialization?