3 ms·
Perhaps worse, lots of new languages, for example Go, copied this mistake from C++. :(
by pcwalton 9y ago
Perhaps worse, lots of new languages, for example Go, copied this mistake from C++. :(
- helper 9y agoIs the "static initialization order fiasco" a thing that can happen in go? The order of package level variable initialization is well defined in the spec and because go doesn't allow import cycles it seems like the issue mentioned in the linked page is not possible.
- pcwalton 9y agoStatic initialization order may be defined, but that doesn't mean it's easy to reason about.
- pjmlp 9y agoActually, if you mean package initialization blocks, they were already present in Mesa derived languages.