Re: Type - Start Again
- Posted by Jason Gade <jaygade at ya??o.com> Aug 21, 2007
- 504 views
CChris wrote: > > Peter Robinson wrote: > > -- > 2-dimensions - highlighting visual hierarchy idea > > type matrix( sequence x ) > > sequence x[] -- 1st dimension all sequences > > integer x[][] -- 2nd dimension all integers > > end type > > > > I think that gives the picture. It didn't look to me that all these > > variations > > were considered. Maybe some were rejected out of hand. > > > > I'm afraid that anything that looks too clearly like C will be rejected out > of hand. I am not among the C haters, and have learned to appreciate C as I > get more frustrated with the verrbosity and rigidity of EUphoria in some > areas. > But there are some on this list. There are? I've never noticed anyone who really hated C here... I don't know about this exact syntax -- I like the first part but not the second so much. I think it would be nice to have a built-ins similar to integer() and atom() and sequence() that check an entire level of a sequence which kind of seems like what is being suggested. And then you can define your own types and then compose the type definitions into more complicated types. Of course, then it kind of goes back to Pete's and Rob's suggestions of inserting that syntax into the argument list of a type definition. -- A complex system that works is invariably found to have evolved from a simple system that works. --John Gall's 15th law of Systemantics. "Premature optimization is the root of all evil in programming." --C.A.R. Hoare j.