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.
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.