in reply to Re: annotation, derivation
in thread annotation, derivation

PS: by playing around with Devel::Declare is ought to also be possible to replace code like this:

my $foo = an(5, '$foo');

With something more like:

annotated $foo = 5;

Devel::Declare allows you to hook into the Perl parser to catch keywords and add custom parsing for them. In this case, you'd catch the keyword annotated and rewrite it to something like:

annotated(); my $foo = Scalar::Annotated->new(0, '$foo'); $$foo = 5;

Thus people could use annotated in much the same way as they currently use my, local or our.