[racket] duplicate/copy a namespace

From: Jay McCarthy (jay.mccarthy at gmail.com)
Date: Mon Nov 8 18:49:41 EST 2010

Could namespaces be dicts and we could write dict-copy?

Jay

On Mon, Nov 8, 2010 at 6:59 AM, Matthew Flatt <mflatt at cs.utah.edu> wrote:
> At Thu, 4 Nov 2010 17:10:31 -0700, YC wrote:
>> is there a way to duplicate or copy a namespace?  It looks like I can use
>> namespace-mapped-symbols, namespace-variable-value, and
>> namespace-variable-set-value! to copy the results from one namespace to
>> another, but this only works for variables, not syntaxes that resides in the
>> source namespace.
>
> I think you're right that there's currently no way to duplicate a
> namespace. Maybe we could add additional reflective operations, but
> it's easy to add too much in this space.
>
> Can you say more about how duplicating a namespace would be useful?
>
> _________________________________________________
>  For list-related administrative tasks:
>  http://lists.racket-lang.org/listinfo/users
>



-- 
Jay McCarthy <jay at cs.byu.edu>
Assistant Professor / Brigham Young University
http://faculty.cs.byu.edu/~jay

"The glory of God is Intelligence" - D&C 93


Posted on the users mailing list.