Insight: Prothon is an Acquisition-oriented language
Paul Prescod <[email protected]> Tue, 27 Jul 2004 12:02:26 -0700
| Newsgroups | gmane.comp.lang.prothon.user |
|---|---|
| Message-ID | <[email protected]> |
Prothon is a language organized around what Python-people call Acquisition: http://www.zope.org/Members/Amos/WhatIsAcquisition Of course, Acquisition has gotten mixed reviews in the Zope world: "One particular innovative feature of Zope is its real world use of acquisition, a programming technique orthogonal to inheritance in object oriented programming. In acquisition, objects 'inherit' behavior from their context in a composition hierarchy, as opposed their class in a class hierarchy. This allows certain ways to structure source code that are otherwise harder to accomplish, and can encourage application decomposition. A common use is in structuring the way layout elements are used in a web page. Acquisition as implemented in Zope 2 is also perceived as a source of bugs, however." http://en.wikipedia.org/wiki/Zope Either way, it is interesting to see that implementing Acquisition in Zope took C hacking (today it could probably be done with metaclasses) but in Prothon it would have been just "built-in". You would just use the protoList to represent the containment hierarchy and acquisition would happen automatically. Paul Prescod