Path to this page:
./
devel/p5-constant-defer,
constant subs with deferred value calculation
Branch: CURRENT,
Version: 6nb3,
Package name: p5-constant-defer-6nb3,
Maintainer: pkgsrc-usersconstant::defer creates a subroutine which on the first call runs given
code to calculate its value, and on any subsequent calls just returns that
value, like a constant. The value code is discarded once run, allowing it
to be garbage collected.
Deferring a calculation is good if it might take a lot of work or produce
a big result but is only needed sometimes or only well into a program run.
If it's never needed then the value code never runs.
Master sites: (Expand)
Filesize: 42.409 KB
Version history: (Expand)
- (2024-11-16) Updated to version: p5-constant-defer-6nb3
- (2023-07-06) Updated to version: p5-constant-defer-6nb2
- (2022-06-28) Updated to version: p5-constant-defer-6nb1
- (2022-06-01) Package added to pkgsrc.se, version p5-constant-defer-6 (created)
CVS history: (Expand)