Nested functions pros and cons

Using try catch for control flow is not great. It has performance implications and makes the code pretty confusing to read. Using a return value from raytrace! might work just as well here.

7 Likes