|
From: | Elias Mårtenson |
Subject: | Re: [Bug-apl] Feature suggestion: multiple function arguments |
Date: | Thu, 17 Mar 2016 10:51:11 +0800 |
I'm not sure what you mean by this. Were we to follow the model of Lisp's macroexpansion, the expander would simply be an APL program that reads some program text -- possibly but not necessarily containing local syntax extensions -- and rewrite that text in APL2/GNU APL code without the syntax extensions. It'd be up to the rewriter to handle any necessary lexical and syntactic analysis necessary to perform the program tranformation.
> The extensions would be part of the program itself, just like in Lisp.
> I don't see a problem here.
I anticipated that a system variable or function would hold the program that does the rewriting. Were I to load two programs (e.g. a main program and a library) that used this facility in different ways, there'd be a conflict.
> I'm not entirely sure why Quad-AV even needs to exist in a modern
> program? We should be able to use all of Unicode to name our functions.
Clearly quad-AV is necessary for compatibility with legacy APL code; as such, it'd be ill-advised to break that compatibility.
[Prev in Thread] | Current Thread | [Next in Thread] |