On Thu, Jul 19, 2007 at 10:42:56PM -0500, Ken McIvor wrote:
> >= Traits =

> >I think we should make a major committment to traits and use them from
> >the ground up.  Even without the UI stuff, they add plenty to make
> >them worthwhile, especially the validation and notification features.

> Code readability is also a concern to me -- the  experience of reading
> mpl1.py suggests to me that newcomers might  find traits a bit too
> "voodoo".  I'm confident that the same thing  could be achieved using
> Python properties to validate attributes.   

Well, I am a stupid noob as far as coding goes (hell, I am an
experimentalist, I work with a soldering iron and a mill, not a
computer), but I can tell you I find traited code very readable. It is
just that the API is very well done. It could have indeed been a
nightmare.

I think Python properties would be harder to read. Traits simply look
like type checking (that's prety much what it is, though), so people get
it really quickly. Besides, the manual is very well written.

But I am biased, Traits have gotten my out of a difficult moment, not
long ago, and I fell in love with them.

My 2 cents,

Gaƫl

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to