HaxeFoundation / haxe-evolution

Repository for maintaining proposal for changes to the Haxe programming language
111 stars 58 forks source link

Package alias #105

Closed hydroper closed 1 month ago

hydroper commented 1 year ago

A little extra syntax proposal

Rendered

EliteMasterEric commented 6 months ago

I like this syntax a lot, since it basically lets you import a large number of related modules together as a single large one, greatly decreasing the fuss required to work with large packages, therefore improving the usability of smaller classes, therefore improving the readability of classes by making them smaller.

:+1: from me.

Simn commented 6 months ago

The .* confuses me here, my intuition would be import ecma262.temporal as Temporal;.

hydroper commented 6 months ago

@Simn In ActionScript packages are not to be mixed with different symbols in name resolution, so that's one reason I see for .*.

fy0 commented 2 months ago

Can't agree more.

EliteMasterEric commented 2 weeks ago

@hydroper Did you delete this PR by accident? Can you restore it?

hydroperfox commented 6 days ago

@EliteMasterEric Hi, I've broken my phone chip sometime ago and lost access to @hydroper :(