We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Right now gl2.New takes a single keepState bool argument. This doesn't allow for expansion in the future. We should use Rob Pike's design:
gl2.New
keepState bool
Self-referential functions and the design of options.
gl2.New(false) would become just gl2.New()
gl2.New(false)
gl2.New()
and
gl2.New(true) would become gl2.New(gl2.KeepState())
gl2.New(true)
gl2.New(gl2.KeepState())
The text was updated successfully, but these errors were encountered:
gl2: Make New take self-referential options; See #53
abfd4b5
window: account for changes to gl2.New; see #53
d1002f2
README: mention gl2.New option function parameters; Closes #53
c43b9be
slimsag
No branches or pull requests
Right now
gl2.New
takes a singlekeepState bool
argument. This doesn't allow for expansion in the future. We should use Rob Pike's design:Self-referential functions and the design of options.
gl2.New(false)
would become justgl2.New()
and
gl2.New(true)
would becomegl2.New(gl2.KeepState())
The text was updated successfully, but these errors were encountered: