3 ms·
But...they will be able to write DSLs in it. Just create functions with the same name as the head atom of the top level lists, then run the config file as a pr
by jimbokun 8y ago
But...they will be able to write DSLs in it. Just create functions with the same name as the head atom of the top level lists, then run the config file as a program. Or write macros matching the syntax of your format to generate code.
I mean, maybe there is something about your format that makes these specific approachs inconvenient. But once you give a Lisper a bunch of S-expressions, you just opened the door for them to unleash the full power of Lisp upon it.
So I think your plan to frustrate Lispers by making an S-expression based format popular, will just give them even more power.
- taeric 8y agoI don't think many non lispers realize that you can pass the same structure to different parts of your program for different manipulations or executions. Truly, the code as data mantra is just too removed from most languages. It is too easy to think eval is something that can just take in a string, at best. Completely missing that you can literally change how your code is evaluated.