Hi,
I suppose that also the performance of the Idea IDE is affected by having all the classes (with “package” visibility) in the one file.
Supposedly I have 5 files with 200 lines of code each. Idea performs very well when I open only one of them.
But in case of all those classes in on single file (1.000 lines of code) I am highly in doubt Idea performance is not affected. Think about having 10 classes or more…
Moreover in terms of distraction avoidance. For me is easier to focus only on one or max 2 things at a time. This means it is easier for me to have only one or two classes open. On the other hand scanning the entire 5 classes kotlin file is against distraction avoidance.
I really think package visibility is very useful. My current case is implementing a DSL over POI apache library. For the client of the DSL the API is very small, but the internals of the DSL is significantly large and I don’t want the client to be offered with it the autocomplete. The 1st client of the DSL is the project the DSL resides on.
Kind regards.
Tony