Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^5: The Case for Macros in Perl

by BrowserUk (Patriarch)
on Sep 16, 2014 at 12:07 UTC ( [id://1100734]=note: print w/replies, xml ) Need Help??


in reply to Re^4: The Case for Macros in Perl
in thread The Case for Macros in Perl

The macros in my patch only accept one kind of arguments (expressions) ruling out several interesting usages. For instance, extending the syntax as in try {...} catch {...}.

I actually consider that a plus. IMO, macros should be limited in both their power and scope. And the in-lining of 'functions' (only) is, for me, the perfect break point.

The syntax and semantics of functions are very clearly defined and understood. And macros that mirror those are thus easy to learn reason about and use.

It has been a very long time since I did Lisp, and I was not very good at it then; but I do remember that only thing worse than the (lack of) syntax, was the unholy mess you get into when trying to debug errant Lisp macros. Yuck!


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1100734]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (9)
As of 2024-04-23 21:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found