Post ArSpTweXSAKIPlHH84 by [email protected] | |
More posts by [email protected] | |
Post #ArSjBYpegDcpbAKO6C by [email protected] | |
0 likes, 0 repeats | |
Was thinking about functions that want to cache some preinit data, and you can … | |
Post #ArSpTweXSAKIPlHH84 by [email protected] | |
0 likes, 0 repeats | |
@encthenet you could probably make a decorator do that | |
Post #ArT0h8Pc8uqI95mxvM by [email protected] | |
0 likes, 0 repeats | |
@encthenet that looks like a class, where "firsttime" is the construc… | |
Post #ArT36CjhP4LKhiGVLE by [email protected] | |
0 likes, 0 repeats | |
@encthenet > functions that want to cache some preinit dataYou're no lon… | |
Post #ArUNsBri8WWS928DCa by [email protected] | |
0 likes, 0 repeats | |
@encthenet Besides turning it into a class, this is a fairly common idiom:cache… | |
Post #ArUNsC0ZbZbyaWHI12 by [email protected] | |
0 likes, 0 repeats | |
@cazabonYeah, done that a few times, but usually prepend cached with an undersc… |