4 ms·
Here is where TCO is implemented in the Coconut compiler code: https://github.com/evhub/coconut/blob/07e311fb8f69861d30e58f0de7861f2ef7351503/coconut/compiler/
by eindiran 8y ago
Here is where TCO is implemented in the Coconut compiler code:
https://github.com/evhub/coconut/blob/07e311fb8f69861d30e58f0de7861f2ef7351503/coconut/compiler/compiler.py#L1611 https://github.com/evhub/coconut/blob/07e311fb8f69861d30e58f...
- zbentley 8y agoThat's clever and horrifying. Clever because writing a regex-based preprocessor for a complex, dynamic language that adds TCO and actually works in most cases is impressive. Horrifying because . . . it's a regex based preprocessor that rearranges arbitrary function code in a complex, dynamic language.