Open andrew-johnson-4 opened 4 days ago
As a midway point just add a sigil to app indicating that this is a Cons argument.
The goal would be to make compiler internals in such a way that this representation doesn't matter. Use a for-each loop instead of recursive destructuing.
TODO
for-each (la in (.args-list a)) ...
app
instead of App
then internal representation can be swapped by redefining the AST definition, .args-list, and app only.
This is a lot better for compiler internals. It could even be pushed forward to Preprocessor eventually.
This would help differentiate cons args from curried application at the syntactic level.