HaxeFoundation / HaxeFoundation/haxe-evolution

[PROPOSAL] Making package statement optional

Open
#107 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
No language data
Stars
119
Forks
56
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.