Does Any Language Have a Delayed Return Mechanism?
Is there any language which has a keyword such as delayedreturn which
allows you to save a value and only return it when a method completes?
For example, something like this (Java syntax):
public Integer nullify(Node<Integer> node){
delayedreturn node.getValue();
node.setValue(null);
}
I know that it's not that much of a space saver. Just curious if anyone
deemed it worthy of implementing.
No comments:
Post a Comment