xp-framework / compiler

Compiles future PHP to today's PHP.
19 stars 0 forks source link

Static imports #99

Closed thekid closed 1 year ago

thekid commented 3 years ago

Idea:

use static util\cmd\Console::writeLine;

writeLine('Hello');

(also supports as like other imports)

thekid commented 3 years ago

Or simply use function util\cmd\Console::writeLine?

thekid commented 1 year ago

I've typically not missed this, we might consider reviving this in a DSL building feature, but closing for the moment.