[Python-Dev] PEP 557: Data Classes
Michel Desmoulin
desmoulinmichel at gmail.com
Fri Sep 15 08:08:45 EDT 2017
More information about the Python-Dev mailing list
Fri Sep 15 08:08:45 EDT 2017
- Previous message (by thread): [Python-Dev] PEP 557: Data Classes
- Next message (by thread): [Python-Dev] PEP 557: Data Classes
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Le 14/09/2017 à 19:24, Mike Miller a écrit : > > On 2017-09-12 21:05, Guido van Rossum wrote: >> It's ironic that some people dislike "data classes" because these are >> regular classes, not just for data, while others are proposing >> alternative names that emphasize the data container aspect. So "data >> classes" splits the difference, by referring to both data and classes. > > True that these data-classes will be a superset of a traditional > record. But, we already have objects and inheritance for those use > cases. The data-class is meant to be used primarily like a record, so > why not name it that way? Because given how convenient it is, it will most probably becomes the default way to write classes in Python. Not just for record. Everybody end up wishing for a less verbose way to write day to day classes after a while.
- Previous message (by thread): [Python-Dev] PEP 557: Data Classes
- Next message (by thread): [Python-Dev] PEP 557: Data Classes
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list