Skip to content

proposal: Ignore "#!" first line. #1121

@gopherbot

Description

@gopherbot

by seth.bunce:

Proposal: Go should ignore the first line of a program if it begins with "#!".

Precedent: The D programming language does this. (under Phases of Compilation step 2)
http://www.digitalmars.com/d/2.0/lex.html

Rationale: This would allow go programs to specify runners like shell scripts do.

Cost vs Benefit: Existing Go programs would not have to be modified. This capability
could be useful to some. Very low cost, low (maybe moderate) benefit.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions