by codemonkey-zeta · 4y ago · 0 comments
Hmm specifying my UI in code is tedious, and porting it to a different framework is impossible! I wonder if I could encode this somehow...
Eureka! I can just specify my code as a data structure! Now it's implementation agnostic!
How can I actually use it though?
I know! All I have to do is write some functions which recursively descend through the UI data structure and make the corresponding calls to the UI framework!
[Writes an interpreter(s) for their data structure]
Congratulations, now you understand the value prop of lisp, and have a poor supplement in C++.
Saying that parsing an AST is on its own a justification for using LISP, is very much like saying that one should use smalltalk or erlang instead of $LANGUAGE every time they implement a message-passing system: at best worth of a shrug. There's a reason why all the projects listed here: https://github.com/celtera/avendish#future-directions are C++ :)