> Are you working on a Nim book?

The thought has crossed my mind ... but that's just how I write normally.

@cblake > const iniOb = whatever

Sure, but then you need some field in the object that you can check for whether 
it was previously set, in order to avoid the expense of calculating its new 
value, and that's not always available. The anonymous proc solution avoids 
that--it's only called when needed.

Reply via email to