Stephen Leake <[EMAIL PROTECTED]> writes: > The ewoc structure for diff/status fileinfo is something like this: > > Element is one of: > (file dvc-status-fileinfo) > (dir dvc-status-fileinfo) > (message \"<message>\") > > In Ada, I would represent this with a discriminant record:
I believe the usual way to do that in lisp is just to use lists, and symbols. Your ewoc element is a list, the first element is a symbol among 'file, 'dir, and 'message, and the second can be a structure (cf. defstruct). Year, I like static typing a lot too, but we're not in Ada here ;-). Perhaps some lisp gurus have a better solution than mine. -- Matthieu _______________________________________________ Dvc-dev mailing list [email protected] https://mail.gna.org/listinfo/dvc-dev
