I was working last year on extending the library system I have here[1]
to support namespaces and a different way to handle symbols.
The idea was that the namespacing was controlled at the library
declaration level (and code was loaded using a special loader, not
Shen's default file load mechanism). Every library could define new
names only inside their namespace, then through import lists you could
remove prefixes if you wanted.
Also self-quoted symbols would not get any auto-prefixing, unless
prefixed by a single quote:
'sym => current-namespace.sym
sym => sym
But maybe the opposite is better, not sure.
Anyway, I never got to finish that, but I may have the code laying somewhere.
Note that this was not a standalone thing, it was an extension to the
library system that also handles other things (like enabling/disabling
macros and type rules), but it could be implemented without that.
[1]
https://github.com/tizoc/shen-batteries/blob/master/library.shen
> --
> You received this message because you are subscribed to the Google Groups "Shen" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
qilang+un...@googlegroups.com.
> To view this discussion on the web, visit
https://groups.google.com/d/msgid/qilang/622fb7c8-7889-4038-a6f9-c13d6a97d09fn%40googlegroups.com.
--
BD