Damian Conway wrote: [...]
Hence, I would argue, one ought to simply mark it with a trait:
sub foo() { my $s is retained = 0; $s++; }
Other possible trait names:
is kept is preserved is permanent is reused is saved is stored is restored is irrepressible
I expected to see 'is persistent' as a possible name. Or does that denote serialisation too much? Would people read
sub foo() { my $s is persistent = 0; $s++; }
as meaning that the value of $s is saved across program invocations?
David