Super Tuples

The Blue Wizard TheBlueWizard at pressroom.com
Tue Dec 28 22:36:13 EST 1999


Paul Prescod <paul at prescod.net> wrote in article
<3869337E.996B9BAE at prescod.net>...
> Manuel Gutierrez Algaba wrote:
> > 
> > 
> > This is a waste of "syntax", 
> 
> Actually it is a very efficient use of syntax. We have attribute access
> and keyword assignment syntax and both are wasted on tuples. 
> 
> > we could have an object in
> > a very similar fashion:
> > t = mytime(hour = ....)
> 
> But then we have an object. It is not a tuple. If you feel that tuples
> have no virtues then you should petition for their removal from Python.
> If you feel that they DO have virtues then you should argue more
> persuasively that improving them somehow hurts things.
> 
> > Is this the start of a switching to tuple-oriented programming instead
> > of OO-programming?
> 
> No. It is the start of making tuples more useful. That doesn't destroy
> OO. I strongly doubt that serious Python programmers would abandon
> objects for tuples. Tuples don't even have a concept of methods.

Um...I believe it is possible to "extend" the tuples to incorporate some
notion
of OO programming.  The ColdC has something called frobs, which serves as
lightweight OO programming....see http://www.cold.org for some info

Cheers!

The Blue Wizard




More information about the Python-list mailing list