On Dec 1, 2007 8:51 AM, Jenda Krynicky <[EMAIL PROTECTED]> wrote:
> From:                   "David Nicol" <[EMAIL PROTECTED]>
> > On Nov 30, 2007 7:24 PM, Jenda Krynicky <[EMAIL PROTECTED]> wrote:
> > > I'm missing the reason-for-being of the module it its docs. I read
> > > the whole documentation and the test script and I still don't get it.
> > >
> > > What is it supposed to be used for?
> > >
> > > Sorry, Jenda
> >
> >  polymorphic functions / more complex prototypes
>
> Any examples?
>
> >  creating new syntax without dealing directly with unlexed source
>
> Looking at the KNOWN BUGS it doesn't look like this works too well.
> Any examples of a "new syntax" that you would like to be able to
> create? So that we can see how close would we be able to get without
> using source filters.
>
> >  inlining small oft-used code snippets without all those pesky function 
> > calls
>
> "Premature optimization is the root of all evil."
> OTOH, being able to inline functions could be nice, yes.

You ought to check out Scott Walter's Code::Splice then. When I last
talked to him it worked well when applied at the statement level. That
is, your insertion point is at a statement level and I gather it'll
take a full sub and inline it. And other stuff but I forget what.

It requires some non-standard B::Generate though. I don't know what
the diff is but assuming the delta isn't hostile to B::Generate's
existing API then I see no reason not to include it. (or Scott and
other people also have PAUSE perms to the namespace so they're free to
update it at will too).

Josh

Reply via email to