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

[codacy] scalatron/botwar/Game.scala - Avoid mutable local variables #19

Open
gewald opened this issue Dec 20, 2016 · 1 comment
Open

Comments

@gewald
Copy link

gewald commented Dec 20, 2016

No description provided.

@gewald
Copy link
Author

gewald commented Dec 20, 2016

Why is this an issue?

Because mutable variables are not idiomatic, they should be avoided.
For more details:

http://stackoverflow.com/questions/11386559/val-mutable-versus-var-immutable-in-scala
http://alvinalexander.com/scala/scala-idiom-immutable-code-functional-programming-immutability

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