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

Avoid mutating params in format() call #10

Open
julen opened this issue Feb 15, 2016 · 0 comments
Open

Avoid mutating params in format() call #10

julen opened this issue Feb 15, 2016 · 0 comments

Comments

@julen
Copy link
Contributor

julen commented Feb 15, 2016

The format() call mutates the object passed as params, which is unexpected for the caller.

IMHO, when not an exception, format() should just return a formatted string value for the passed parameters, and have no side-effects such as mutating the passed arguments.

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

No branches or pull requests

1 participant