Hello everyone,<div><br></div><div>I&#39;m implementing a scheme of my own for fun and education, and I&#39;m stuck at the following point. I&#39;m wondering whether someone could give me some tips.</div><div><br></div><div>
I have the basic forms and functions implemented, and was planning on doing everything from there using macros.</div><div><br></div><div>I also now have a multi-method system built up using macros.</div><div><br></div><div>
But it&#39;s annoying that the basic functions such as car/cdr are still plain functions and not multi-methods like everything else. I&#39;ve tried re-defining them at this point, without much luck. Somewhere or other, I fall into an infinite recursion.</div>
<div><br></div><div>Does anyone have some tips for wrapping their heads around recursive things like this?</div><div>e.g. writing multi-methods using normal functions, and then somehow turning everything into multi-methods?</div>
<div>   OR writing an object system, where your classes are also objects, etc...</div><div><br></div><div>Thanks!</div><div>  -Patrick</div>