Re: vote on prop keyword
"Mark Hahn" <[email protected]>
| Newsgroups | gmane.comp.lang.prothon.user |
|---|---|
| Message-ID | <[email protected]> |
Paul Prescod wrote: > Anyhow, I think that a) the "prop" keyword is a good way of hiding the > underlying machinary and b) the underlying machinary is probably fine > but it just took me by surprise at first because it uses inheritance > instead of either "special" slots (which I would expect from a > language like Java) or wrapper objects (which I expect from Python). I never did understand the Python wrapper object mechanism or I might have considered it. Does it have any advantages? Detecting a specific type by the interpreter can be done in one comparisom. Also I think my method is pretty clear and intuitive. If tax "is a property" then shouldn't it be a "Property" through inheritance?