Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??

Macros are used in many languages to resolve issues that the language for one reason or another doesnt address directly, to fill in the cracks so to speak. I dont see why a language that has appropriate other features necessarily needs a defined macro mechanism. Some of the more common uses for macros are: Templating, Inlining and Conditional Compilation. If a language provides other means of accomplishing these tasks then I see no reason for the language to define a macro language. OTOH, if a language doesnt provide these features, then any arbitrary macro preprocessor will provide then if needed. And when I say any arbitrary macro preprocessor I mean anything from perl to borrowing the C preprocessor for the job.

Which kind of leads me to my main point. Perl doesnt need a macro language because it is a better macro preprocessor than anything else out there all by itself. With closures and eval, source code filters and funky things like BEGIN/INIT blocks and friends, Perl doesnt need anything that a macro preprocessor can provide.

Anybody who thinks that having a macro facility indicates that a L is FSP obviously hasn't noticed VB's macros.


<Elian> And I do take a kind of perverse pleasure in having an OO assembly language...

In reply to Re: Macros, LFSPs and LFMs by demerphq
in thread Macros, LFSPs and LFMs by stefp

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or or How to display code and escape characters are good places to start.
Log In?

What's my password?
Create A New User
Domain Nodelet?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (2)
As of 2022-07-05 00:20 GMT
Find Nodes?
    Voting Booth?

    No recent polls found