Hi there everyone,
I understand the difference between call-by-value and call-by-name.
And logging (or the side of effect of time, via logging) seems to be used in all the examples to show their difference, too.
I have also read that as a preference, you should choose call-by-value orver call-by-name.
My question is;
If I want the behaviour in my logging - that each instance of time I use - I want "the" time AT the time of use...
Do I construct my code to use call-by-value, xxx times as required?
or am I being overly rigid and I just use call-by-name as that seems to fit the bill - perfectly. (for this use-case)