From: Lawrence M. <we...@gm...> - 2006-01-21 14:26:45
|
Michael Olson wrote: [...] > One major problem involves the use of erc-response as a struct. What > would be the best way of dealing with this? Something non-invasive > and easy (but that doesn't require 'cl) is preferable. I'm not sure defining erc-response as a struct is actually a problem. Since defstruct is a macro, you can just require 'cl are compile-time, which is fine as far as Emacs guidelines go I believe. Essentially all the erc-response stuff is doing is wrapping some syntactic sugar around the parsed server text so that there aren't as many magic numbers lieing around in the source code. Prior to erc-response being a struct, it was just an array and all the various handlers were littered with stuff of the form (aref response 4) [meaning the command text, IIRC]. So actually, you could get away with removing the erc-response struct, and just defining all the various array accessors manually---it's just more effort. [...] Lawrence -- Lawrence Mitchell <we...@gm...> |