Hi,

I propose* "*memorization" or "memo" keyword for a function that allows to
run only once through out the lifecycle in Swift 3. Repeatedly execute the
function will only return the same result without having to rerun the
function everytime.

memo func hello(fname: String, lname: String) {
   return fname.lname
}

This is useful for certain case for web application and value that don't
need change once executed.
_______________________________________________
swift-evolution mailing list
swift-evolution@swift.org
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to