2 ms·
The tricky think about a source-to-source transformation, is where do you store the meta-data to map the new source back to the old source, for the purposes of
by chrisseaton 7y ago
The tricky think about a source-to-source transformation, is where do you store the meta-data to map the new source back to the old source, for the purposes of error reporting, debugging, and deoptimisation? You can't just map from one list to another as your optimisation function.
- bjoli 7y agoI think it is the same system as used when doing macro expansion. Macros use syntax objects with embedded metadata. Both chez and guile usually produces proper error sites, so it is done in some fashion.