Skip to content
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

Unbox Tuple at call sites. #10787

Closed
rmuir opened this issue Apr 24, 2015 · 1 comment
Closed

Unbox Tuple at call sites. #10787

rmuir opened this issue Apr 24, 2015 · 1 comment
Assignees

Comments

@rmuir
Copy link
Contributor

rmuir commented Apr 24, 2015

See #10784 for an example doing this for Bootstrap class. IMO this is an easy win for readability of the code and it would be good to do it everywhere.

Unboxing these immediately gives the developer back control of the variable and parameter names. Even when the name is simple like 'settings' it is better than 'v1' or 'v2'. It tells something, as opposed to 'newSettings' or 'oldSettings'. 'v1' and 'v2' are never good names.

@s1monw
Copy link
Contributor

s1monw commented Apr 24, 2015

++

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants