Re: Type - Start Again
- Posted by Peter Robinson <indorlaw at yah?o.c?m.au> Aug 20, 2007
- 530 views
Hello all I'd be absolutely delighted if a solution were implemented that allowed typing and aliasing of data within a sequence. To me, such improvements would merely enhance Euphoria's sequences, not detract from them. However, the suggested solutions don't address the issue of nested data. I am one of the apparently few people who want to constrain nested data (beyond the first dimension), and the same sort of idea arose in the discussion of "sequence of integer". I do believe a consistent approach to similar issues is more likely to preserve the clean design of the language. (If it's impossible, so be it). I can see how something like "sequence of sequence of integer" quickly becomes non-intuitive, and you have the question of where to draw the line. Natural language doesn't convey multiple dimensions well. My own suggestion was therefore aimed at a more visual representation through brackets. As I intimated in my post, I am happy for the contributors to make the decisions - I just wanted to raise the issues at a more general level, so that more generalised solutions could be considered. Cheers Peter Robinson