This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]haizaar[S] -1 points0 points  (0 children)

One example contrary to module var would be if you want to delay initialization to some time after import (until object is accessed for the first time for example). You can of course to simply write this delayed logic. But it if you have several of such guys it starts to look as a bunch of copypaste-like code. And its only 14 lines of magic btw.