develooper Front page | perl.perl6.internals | Postings from October 2002

Re: Draft sketch of bytecode generation

Thread Previous | Thread Next
From:
chromatic
Date:
October 29, 2002 09:53
Subject:
Re: Draft sketch of bytecode generation
Message ID:
200210290935.09754.chromatic@wgz.org
On Monday 28 October 2002 13:02, Dan Sugalski wrote:

> At 1:08 PM -0800 10/27/02, chromatic wrote:

> >Is there an underlying function used to add arbitrary (Unicode text)
> > metadata to the bytecode?

> Arbitrary metadata? Nope, no plans for that. While I can see it as a
> useful thing (though it wouldn't be unicode, at least unicode
> wouldn't be required) I'm not sure it's worth the time to define,
> implement, and maintain.

> On the other hand, if someone has a good proposal, clean API, and
> generally feels strongly about it I certainly won't have any
> objections.

I'd really like to be able to save comments from source files as metadata.  
This has at least two potential benefits.  First, it makes it much easier to 
recreate the whole file from bytecode (especially refactored bytecode).  
Second, it makes it possible to pull out method documentation in the 
Smalltalk or Python sense.

Maybe metadata's not the place for this, but it seems rather natural to me.

-- c

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About