3 ms·
It just occurred to me that a language could be made embeddable using eval() alone, with okay performance. We just need to take a page from SQL's book and intro
by cousin_it 14y ago
It just occurred to me that a language could be made embeddable using eval() alone, with okay performance. We just need to take a page from SQL's book and introduce "prepared statements" for eval. A string of high-level code with placeholders could be parsed only once, and converted into an object you can "call" using different values for the placeholders. I'm pretty sure this isn't a new idea, though.