23 Oct
2021
23 Oct
'21
7:57 p.m.
On Sat, Oct 23, 2021 at 7:00 PM Steven D'Aprano
I challenge that assertion. I've never knowingly seen a function where the late binding is "buried deeper in the function", certainly not deep enough that it is not obvious. It is a very strong convention that such late binding operations occur early in the function body.
You know, before you use the parameter, not afterwards *wink*
I've seen this and recently. The case is where the evaluation of the default expression might be expensive, and is only used depending on the value of other arguments. --- Bruce