RE: Eu's good design (to jbrown)
- Posted by eugtk at yahoo.com Aug 20, 2003
- 437 views
--- Peter Willems <peter at integratedmoves.com> wrote: > Bernie Ryan wrote: > > > What other language has and supports euphoria > style sequences ?? > > OK, so I'll try again (I already posted this but > Topica seems > to have screwed the message, like several others > I tried to post > over the last few days). > > So on to the question: The Icon language has > sequences identical > to Euphoria. They are called Lists and can > contain numbers, strings > and other nested Lists. Instead of curly brackets > they use square > brackets, but apart from that it is completely > identical. Even the > way that positions in a List can be subscripted > is similar to Eu. > > Take a look here for information on Icon > features: > http://www.cs.arizona.edu/icon/docs/ipd266.htm > You can scroll down to paragraph 4.1 for the > description of Lists. I believe Lua also has sequences very much like Eu's, except that in Lua, a sequence (Lua calls it a 'table') can contain functions as well as values, and table entities need not be referenced by number: t = {1, 2, pie=3.1415,'Foo',bar(z), name='Sue', age=23 } print(t.1) => 1 print(t.name) => Sue Irv