Created
November 11, 2021 18:52
-
-
Save PlugFox/9b11e06efd49529c99b7ff4ddf3660de to your computer and use it in GitHub Desktop.
No Tail Call Optimisation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* No Tail Call Optimisation | |
* https://gist.github.com/PlugFox/9b11e06efd49529c99b7ff4ddf3660de | |
* https://dartpad.dev/9b11e06efd49529c99b7ff4ddf3660de?id=&null_safety=true | |
*/ | |
void main() => fn(0); | |
int fn(int i) { | |
print(i++); | |
return fn(i); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment