Re: Eu Improvements consolidation
- Posted by Karl Bochert <kbochert at copper.net> Jan 05, 2007
- 616 views
Matt Lewis wrote: > > Jason Gade wrote: > > > > Karl Bochert wrote: > > > > > > > > > The 'fixed sequence': > > > 1) has named elements > > > 2) cannot have its structure modified > > > 3) contains only data (like any other sequence) > > > 4) may be put in another sequence without losing its > > > identity (like any other data) > > > > > > KtB > > > > One thing I've been trying to point out is the Matt's ooeu does this but the > > syntax is a little different. Matt would have to answer if it fits all four > > of your criteria but I believe that it at least follows the first three. > > I don't cover 2 or 3, and 4 is maintained only if you put it into another > class into a member of the appropriate type. I was more interested in > the functionality than strict type checking. Being able to have control > over the data is one reason why I like Euphoria, and to do those things > would have taken a lot more effort than what I did. :) > Stricter typechecking make the code harder to write, but easier to read. You must invest a (very)little more writing time up front, and a little more discipline when using them. (many would think that a good thing). I appreciate that SS takes away a little of that gunslinger freedom, but then you don't have to use them. KtB