The real difference is reusability. The compiler will make the top-level stuff as private. The coding approach is quick and dirty, but may obviously present other challenges.