On 2013-12-20 21:36:15 +0000, Andrei Alexandrescu
<seewebsiteforem...@erdani.org> said:
On 12/20/13 12:43 PM, Martin Nowak wrote:
Couldn't static imports be made lazy without breaking any code?
One simple idea is to make all imports lazy - no change in semantics.
Sure, why not. Except that upon reaching the first non-fully-qualified
symbol you'd have to load them all because they could all contain a
symbol with that name. So in practice it'd change nothing, except for
static imports.
Beside that, loading modules eagerly is more parallelizable.
--
Michel Fortin
michel.for...@michelf.ca
http://michelf.ca