Hello,

Tomas Volf <[email protected]> skribis:

> One more I would add is that whether something is thunked or not is not
> visible at the call site.  What does
>
>   (define %param (make-parameter #f))
>   (define foo (make-foo (param (%param))))
>   (%param 42)
>   (pk (foo-param foo))
>
> print?

Yes, I forgot to mention it, but that’s even the reason why thunked
fields were introduced in the first place: so you could look up the
value of ‘%current-system’ from an ‘arguments’ or ‘inputs’ field.  See
<https://arxiv.org/abs/1305.4584>.

But it’s not ideal, I agree.

Ludo’.

Reply via email to