On Saturday, 27 December 2014 at 12:32:32 UTC, Nick Treleaven wrote:
On 24/12/2014 06:18, "Ola Fosheim Grøstad" <[email protected]>" wrote:
"lazy" was implemented in Algol and then shunned in just about all
languages that followed.

FWIW Apple's recent Swift has @autoclosure, which is the same as lazy. It's needed to implement assert in Swift.

Yes...

«As with macros in C, auto-closures are a very powerful feature that must be used carefully because there is no indication on the caller side that argument evaluation is affected.»

https://developer.apple.com/swift/blog/?id=4

Reply via email to