Created
August 14, 2019 18:46
-
-
Save Ratstail91/4e292f4a72f1201b1b065fe93c7c0566 to your computer and use it in GitHub Desktop.
My interpreter is currently a bit... inconsistent.
This file contains hidden or 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
/* stack overflow, as expected | |
var counter = 0; | |
const recursion = () => { | |
print ++counter; | |
recursion(); | |
}; | |
recursion(); | |
*/ | |
/* process killed (handler didn't like it) | |
const recursion = (i) => { | |
print i; | |
recursion(i+1); | |
}; | |
recursion(1); | |
*/ | |
/* null reference? | |
const recursion = () => recursion(); | |
recursion(); | |
*/ | |
/* NULL REFERENCE? | |
var counter = 0; | |
const recursion = () => { | |
print ++counter; | |
recursion(); | |
}; | |
recursion(); | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment