Re:Say “no” to import side‐effects in Python
by pcwalton on Saturday April 05, 2014 @03:02PM
(#7538052)
In addition to the many other languages listed here, Go allows side effects on import.
[ Parent
| on HN ]
Re:Say “no” to import side‐effects in Python
by colin_mccabe on Saturday April 05, 2014 @09:17PM
(#7539206)
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?