News for hackers. Stuff that matters.
Re:The use of `class` for things that should be simple free ... by nightski on Friday May 29, 2020 @11:52AM (#23351450)
That's the whole point. You can't test outcomes if they are dependent on internal hidden state as that affects the outcome.

Whether you make it private or not hidden state leaks into the output since the output is dependent on it.

Re:The use of `class` for things that should be simple free ... by kortilla on Sunday May 31, 2020 @03:00PM (#23371739)
It sounds like you’re confusing side effect free code with OOP. You can use OOP while having side effect free stuff that never requires you to assert internals.