Sunday, March 5, 2023

Digest for comp.lang.c++@googlegroups.com - 1 update in 1 topic

Mr Flibble <flibble2@reddwarf.jmc.corp>: Mar 05 11:07PM

On 05/03/2023 21:59, Chris M. Thomasson wrote:
 
> Imvvho, it is still "mathematical", in the sense that it performs
> mathematical "tasks" on the mutable state? A side effect to me means the
> function did something else besides providing a return value.
 
And incrementing "inc" is a side effect. Even if we ignore side effects
it still isn't a mathematical function because mathematical functions
always return the same value for the same input(s).
 
/Flibble
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to comp.lang.c+++unsubscribe@googlegroups.com.

No comments: