Because it needs to descend and expand function calls, loopBody calls renderHtmlAtom and wraps it as an HtmlAtom. This is not good for adding more functions and nesting function calls. It would be better to recursively descend, expanding function calls as you go, and return a regular atom, delaying rendering as long as possible.
Because it needs to descend and expand function calls, loopBody calls renderHtmlAtom and wraps it as an HtmlAtom. This is not good for adding more functions and nesting function calls. It would be better to recursively descend, expanding function calls as you go, and return a regular atom, delaying rendering as long as possible.