Re: Euphoria Objects
- Posted by Kat <gertie at PELL.NET> Dec 31, 2000
- 410 views
On 31 Dec 2000, at 13:03, Jim wrote: > David, > > Thanks for the clear, concise explanation of 'object' as in object-oriented > programming. > > I've found myself saving and printing most of your posts (whatever the > subject), categorizing them, and printing them as a handy reference to various > subjects. > > I'ts beginning to look a lot like a book, now; maybe I should name it "The > David Cuny Guide to Effective Programming". Ditto, except in this case, for more flexability, i prefer the XML tags still, and do not like OOP. That way, there are no mandatory fields; there are no fixed fields; there are unlimited descendants and inheritances, and they can be ranked; data can be added at any time and place, and who added it can be added; etc. The real world is not fixed, there are exceptions all over the place, and what we "know" today may be wrong tomorrow,, so i'd hate to be the one hard-coding an object form. As an example, after i have forgotten my biology.... Bird = "<reproduction_method>lays eggs</reproduction_method>" Mammal = "<characteristics>warm blooded</characteristics> Cat = "<species>mammal</species><size>10lbs max</size>" My_Cat = "<inherited_from>Cat</inherited_from> <name>Alice</name> <covering>fur</covering> <eye_color>green</eye_color>" Janes_Cat = "<inherited_from>Cat</inherited_from> <name>Fred<addedby>Susan</addedby></name>" Platypus = "<inherited_from> mammal </inherited_from> <inherited_from>bird</inherited_from> <reproduction_method> <inherited_from>bird</inherited_from> </reproduction_method>" what is Jane's cat size? = max 10lbs What is my cat covering? fur What is Jane's cat covering? unknown Who told you Jane's cat's name: Susan Is a Platypus a mammal? yes Does a platypus lay eggs? yes Of course, i have not verified any of the above data, but you get the idea. The data is changeable at any time, and can be human-readable. Kat