You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, there's another use case - to compute a value that depends on the runtime environment but known to be constant during the run (#1001). Such value is idempotent and run-once is overkill. We also want subsequent access to be as lightweight as possible,
Global varaible with a special getter hook may be good.
The text was updated successfully, but these errors were encountered:
A mechanism to compute its value when it is first referenced, and store the result so that the subsequent reference returns the computed value.
It can be done with
gauche.threads#run-once
:However, there's another use case - to compute a value that depends on the runtime environment but known to be constant during the run (#1001). Such value is idempotent and
run-once
is overkill. We also want subsequent access to be as lightweight as possible,Global varaible with a special getter hook may be good.
The text was updated successfully, but these errors were encountered: