Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Remove shebang support #2165
Currently the tokenizer allows and skips over a shebang (e.g.
I think the language should either explicitly support this feature or not support it at all. Right now it's kind of in a hazy middle ground.
I have to say my opinion on this has changed over time. I would be in favor of accepting this and rejecting #1505. Reasoning:
So with all this in mind, I would accept the fact that one use case would be a little bit more trouble, but zig project becomes just a little bit simpler.
That said, I am also open to input on this.
I think that shebang support is a great feature for not only quick n dirty scripts but getting started with the language and teaching. Being able to share a script with someone and say "just chmod +x it and run it" is hugely beneficial to getting people into the language.
It doesn't rely on system zig though: it relies on the zig in your
Yes we should! We probably want some annotation that says "written and tested against zig versions X, Y, Z". I don't see it as very related to this issue though.
Yes.... again, not sure how this is related. If I
If you're already having to run