IssueRaiser

Your complaint doesn't make any sense.

Your complaint doesn't make any sense. I think you're struggling with immutability because you don't understand that it actually works very differently from mutability. In this example, it's not about "making sure nobody uses foo". Nobody is making you use it again. If you don't want to use the variable again, just... don't use it again. Or, you can use it again, if you want to, but if you make an error your tests should fail or your compiler should complain about an unused variable. It's not rocket science.

Posted by theseoafs on Mar 19, 2015, 10:38 PM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.7,500 issues0 comments

reliability (Software)

Your complaint doesn't make any sense.

theseoafsMar 19, 2015, 10:38 PM

Your complaint doesn't make any sense. I think you're struggling with immutability because you don't understand that it actually works very differently from mutability. In this example, it's not about "making sure nobody uses foo". Nobody is making you use it again. If you don't want to use the variable again, just... don't use it again. Or, you can use it again, if you want to, but if you make an error your tests should fail or your compiler should complain about an unused variable. It's not rocket science.

Comments (0)

No comments yet. Start the discussion.

Comment on this issue