|
From: Felix Wiemann <Felix.Wiemann <at> gmx.net>
Subject: Re: The Trouble with Tables Newsgroups: gmane.text.docutils.user Date: 2005-04-06 13:05:11 GMT (3 years, 5 weeks, 1 day and 37 minutes ago)
David Goodger wrote:
> Felix Wiemann wrote:
>
>> I think the different table directives ("table", "list-table",
>> "csv-table") basically call for unification into a single "table"
>> directive.
>
> +1 on unifying the *implementations* (and documentation). See the
> implementation of admonitions for an example.
>
> -1 on unifying the directives themselves. I'd much rather write
>
> .. list-table::
>
> than
>
> .. table::
> :format: list
That's true. +1.
> Think polymorphism!
Yup. Apropos, the directive code should probably be refactored towards
classes, using what Kent Beck calls "Method Objects":
Instead of passing long parameter lists, the attributes are set through
the constructor, and the actual code is in a "run()" method.
--
When replying to my email address, please ensure
that the mail header contains 'Felix Wiemann'.
http://www.ososo.de/
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
|
|
|