New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
go/token: FileSet.AddFile function signature complaint #2499
Labels
Comments
Owner changed to @griesemer. |
This is working as intended. I agree that it would be better if one wouldn't have to specify the size of the "file" - not so much because of this specific API but because it would permit clients of token.Positions to work on streams (io.Reader) of input where the length might not be know a priori. A different implementation may make that possible. Closing this for now. Status changed to WorkingAsIntended. |
Comment 4 by raul.san@sent.com: At least, it could be renamed the argument "filename" to "name". |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
by raul.san@sent.com:
The text was updated successfully, but these errors were encountered: