![](https://secure.gravatar.com/avatar/202432bfbf2e81826fe79af29f70cd02.jpg?s=120&d=mm&r=g)
24 Oct
2021
24 Oct
'21
2:57 a.m.
On Sat, Oct 23, 2021 at 7:00 PM Steven D'Aprano <steve@pearwood.info> wrote:
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