by boxed 4 hours ago
In Swift it's even worse. All symbols in neighbor files are available. No imports.
Also in Java, and one of the (few) features they added was “module imports” (https://docs.oracle.com/en/java/javase/24/language/module-im...). I’m curious why, my guess is that it’s for beginners and scripts (same with “unnamed classes and instance main” (https://docs.oracle.com/en/java/javase/21/language/implicitl...)).