[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [plt-scheme] The same macro problem





On Fri, 24 May 2002, Matthias Felleisen wrote:

> 
> Heck, any decent size system with Lisp style macros displays
> this anomaly. 
> 
> For those of you who don't believe it, write a couple of 1000
> loc, with macros, distribute it over a bunch of files, go away
> for a couple of months, and then try to add some major piece of
> functionality. 
> 
> -- Matthias

I do not see any anomaly specific to macros.  You can randomly divide
your code into files using languages which do not have macros at all, e.g.
one has 50 utilities used by the rest of code and distibutes them
randomly.  This is rather the question of organization of your code.

The easiest way is of course to put macros into separate files (e.g.
one for each subsystem) and use them only during compilation.
This works most of time, esp. when teaching.  However, you sometimes
need macros at runtime, when playing with code, writing debuggers etc.

Zbyszek