Structures; etc.
- Posted by Michael Nelson <mike-nelson-ODAAT at WORLDNET.ATT.NET> Jan 30, 2000
- 533 views
There seems to be a recurring demand for structures--in Euphoria terms, fixed-length sequences with type specified for each element and named access to the elements, preferably with dot notation. I'm not sure I see the point in doing this if we are going to stop there. No doubt implementing structures in the Eu interpreter would require extensive reprogramming. If Rob were to invest that much time and effort into redesigning the language, why only go half way to object orientation? Add access control, methods, and some form of inheritance and you have a true OOP language: E++. Is this the direction we want Euphoria to go? My inclination is to vote NO--and no one can accuse me of being anti-OOP. For those of us who want structures without having to hand code types for 20 to 50 sequence elementsand want dot notation, how about a preprocessor--perhaps along the lines of David Cuny's Dot preprocessor. --Mike Nelson, author of Object Euphoria, a full-featured Java-style OOP system for Euphoria.