in reply to Re^2: Overcoming addiction to Lisp
in thread Overcoming addiction to Lisp

Well, I don't know whether these will be compelling or not, but you might want to check out: -Peter

Replies are listed 'Best First'.
Re^4: Overcoming addiction to Lisp
by Anonymous Monk on Jun 16, 2005 at 21:26 UTC
    What is the special feature about those examples that couldn't have been done just as well (or succinctly, or whatever) without macros?
      All three (in different ways) aim to provide a syntax for concisely expressing something that otherwise could only be expressed via some (rather convoluted) coding patterns. That is, they provide syntactic abstractions (which is what macros are really all about.) But you'll get a far better explanation from the chapters I pointed to than I'll be able to type her in this browser window. -Peter
        I typed in MP3, ID3 over at CPAN, and it came up with a module who's core seems to be about 150 lines. And the real meat seems to be...
        (undef, @{$self->{tag}}{qw/title artist album year comment genre_num +/}) = unpack('a3a30a30a30a4a30C1', $buffer);