Loading…
Attending this event?
TPRC 2024 in beautiful Las Vegas, Nevada! June 25-27th.
Thursday, June 27 • 2:30pm - 3:20pm
Fun with Macros

Sign up or log in to save this to your schedule, view media, leave feedback and see who's attending!

Bending source filters into a reliable mechanism =)# Fun with Macros

Macros are a killer feature of Lisp many have longed for Perl ...

... in fact, it has been possible for a long time to expand and "inline" a function at compile time.

All you need to do is to pair the import mechanism with a source filter so you can insert code cleanly without stepping into the usual trap of source filters.

Coupling that with Keyword::Simple you even have a macro mechanism at hand that works without a "use" statement.

To demonstrate the benefits, we will present various elegant solutions for DSLs, object models, and runtime optimization.

This is an extended and updated version of [my talk at European PerlCon 2019 in Riga](https://perlcon.eu/talk/97)Audience: All["Perl", "macros inlining source-filter inc-hooks", "macros", "inlining", "source-filter", "INC-hooks"]

Speakers

Thursday June 27, 2024 2:30pm - 3:20pm PDT
Track 1

Attendees (3)