Import classes into ActionScript files

A very simple question:

Are there any flaws in using the qualifier ". *" When specifying our import into ActionScript files.

In other words, is this just a compile-time directive or does it really affect the size and performance of our final collections?

TIA

+3
source share
1 answer

As far as I know, this is just a compiler directive for resolving names. An alternative would be to fully qualify everything everywhere, which quickly becomes a syntactical inconvenience.

those. The following two examples should be the same in the bytecode:

import foo.bar.*;
var MyClass;

Vs.

import foo.bar.MyClass;
var MyClass;

, , , :

import foo.bar.MyClass;
import foo.bar.MyOtherClass;

var MyClass;
var MyOtherClass;

Vs.

import foo.bar.*;

var MyClass;
var MyOtherClass;
+2

Source: https://habr.com/ru/post/1774318/


All Articles