1 points · by AtypecastA · 2y ago · 1 comment
Is it worthwile to introduce the (no) return statement in C++, Java, JavaScript and Kotlin with the following semantics:
(no) return; // pulls the top stack frame
(no) return all; // proceeds right after a call into recursion
(no) return 5; // pulls al frames such as the next return will jump to the fifth frame
(no) return -7; // pulls seven stack frames
Thanks a lot, community!
I enjoy ever visit and gained a lot of insight into my profession and beyond from all of you. Thank you very much.
<typecast>
> (no) return all; // proceeds right after a call into recursion
What about f -> g -> f -> g -> f -> g -> f -> g -> f ?
And f -> g -> f -> g -> f -> X -> f -> g -> f -> g -> f ?