Re: [q-lang-users] LPs, CDs and other records
Brought to you by:
agraef
From: Tim H. <q...@st...> - 2005-06-24 11:39:12
|
Albert Graef <Dr....@t-...> writes: > Tim Haynes wrote: > > > Do we have some form of record / structure data-type and associated > > manipulation functions? > > Not yet. That's something I've been thinking about lately. Might be a > good idea to adopt an ML/Haskell-ish syntax for that. Something like: > > > type Person = person { name, address, phone }; > > def AG = person { name = "Albert", address = "Mainz", phone = "???" }; > > That would actually be syntactic sugar for an algebraic data type with > getter and setter functions created automatically for you. However, it's > not yet clear to me how to extend inheritance and pattern matching to > make this really useful. Groovy. I like the way this is going. Ta, ~Tim -- <http://spodzone.org.uk/> |