source-academy / cs1101s

1 stars 0 forks source link

Is there a part of the environment model that shows a result of a function? #7

Open mrqorib opened 4 years ago

mrqorib commented 4 years ago

Question: Is there a part of the environment model that shows a result of a function? If a constant is a result of a function which is a number, where may the arrow point to? Piazza: https://piazza.com/class/kas136yscf8605?cid=552

mrqorib commented 4 years ago

Answer: No, the environment models do not explicitly denote what values are returned, what will happen to that value, and what you need to do next when you return from a function. You need to manually keep track of these things.