Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> I'd say Go is the benchmark in case of import system.

I prefer systems that (a) allow namespace nesting within a single package and (b) don't run arbitrary code on import (in Go's case, init()). The latter is particularly pernicious because systems that have arbitrary code execution on import have to define some kind of global ordering on imports (throughout the entire program!), since the order that packages get loaded in very much affects the program semantics. This is called the "static initialization order fiasco" in C++ and Go inherits it too.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: