add AS operator at IMPORT statement
rkdrns4747 opened this issue ยท 0 comments
In general, if we write code of importing specific class, we write it like,
IMPORT org.some.awesome.MyClass
However, After we import the MyClass, it saved in MyClass local variable, which means that MyClass acts like a 'Reserved Word'. This could be problem when two classes have same name, like,
IMPORT org.some.awesome.MyClass
IMPORT org.some.awful.MyClass
In this code only org.some.awful.MyClass is saved in MyClass variable, which means it has been overwritten.
Thus, It would be excellent to make coder able to manually set variable name, with a new operator, AS
IMPORT org.some.awesome.MyClass AS AweSomeClass
IMPORT org.some.awful.MyClass AS AwfulClass