Skip to content

[PROPOSAL] Making package statement optional #107

@basro

Description

@basro

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions