News for hackers. Stuff that matters.
Re:Functional programming in C++ (2012) by mhh__ on Monday December 28, 2020 @06:53PM (#25564819)
This is why (the keyword) pure in D (mentioned in the article) asserts that the function does the same thing for the same input - not necessarily the same output. Side effects are still reasonably possible, just not launching the missiles.

Strong purity can be checked by having immutable arguments.

There are no comments on this comment yet.