[parenscript-devel] Feature request: prefixed names
vsedach at gmail.com
Mon Jun 25 21:40:07 UTC 2007
> I think the general use case is a sort of Parenscript library that is
> quite fixed and only uses identifiers in itself. The name references
> inside this library can presumably be all resolved at the host lisp's
> compile time.
I think the important thing is to keep in mind that the time at which
the ParenScript code gets "compiled" (however shallowly) into Lisp and
necessarily have to be the same. This is what buys the name resolution
in my proposed design relatively cheaply (from the standpoint of the
cost of adding things to the ParenScript compiler).
> as event attributes or <script>s or whatever. It is unlikely that
> these things will modify the PPP (if they did, then you would have to
> have one PPP per page).
Not necessarily. I was thinking you could have a form like
(in-parenscript-package PPP) that would set some special variable
indicating the PPP/namespace that the forthcoming ParenScript code
would use for its identifiers. At compile time, the namespace would be
populated and its binding done for name resolution, however the actual
code was emitted.
> I'm not sure that name-mangling (helpful by-product: spell-checking of
> identifiers) would really use the "lisp code templates to generate a
> string" functionality.
I think it would have to, otherwise how would forward references be resolved?
More information about the parenscript-devel