Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PROPOSAL] Making package statement optional #107

Open
basro opened this issue Mar 31, 2023 · 1 comment
Open

[PROPOSAL] Making package statement optional #107

basro opened this issue Mar 31, 2023 · 1 comment

Comments

@basro
Copy link

basro commented Mar 31, 2023

The package statement at the top of the file has always felt superfluous to me. The compiler already knows the package the file should have from the directory path it walked to find it.

I propose that when the package statement is missing the haxe compiler will automatically assign a package generated from the module's file path.

I'd like to know the general sentiment on this, I'll write formal proposal PR if it makes sense.

@Aurel300
Copy link
Member

Aurel300 commented Apr 2, 2023

Previous discussion here: HaxeFoundation/haxe#6607

(@Simn is it still used for completion somehow?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants