Interesting. I did find an implementation of backquoting in MDL, kind of:
https://github.com/PDP-10/muddle/blob/master/mim/development...
It doesn't run on any available MDL implementation, because it's actually for MIM, an even more obscure and undocumented extension of MDL. ZILF implements some parts of MIM, but doesn't implement READ-TABLEs at all, and the format of the table implied by that code is different from what's documented for MDL.
As an example, consider the following possible implementation of PROG1 in terms of LET's implicit PROGN. They both evaluate a sequence of forms in order, but the first returns the value of the first form, and PROGN the last:
A MDL equivalent would be something like (though I admit I'm entirely going off documentation!): Without quasiquotation, the Lisp example would be (without capitalization this time---in Lisp symbols are auto-capitalized): I chose this example to demonstrate how sequences alleviate the pain of splicing things into the middle of things.Backtick is not used in MDL, right? And you're somewhat free to extend the MDL used in Zilf, right? You could get the best of both worlds by adding either a PREFORM type or an REBUILD form. For example:
or The semantics would be that a PREFORM would be evaluated like a LIST, but then it would CHTYPE to FORM. Or, a REBUILD is an FSUBR that expects a structure, and it maps EVAL over the elements of that structure.The macro would look like
I don't know all the consequences of this change to MDL, though.