Re: [q-lang-users] LPs, CDs and other records
Brought to you by:
agraef
From: Albert G. <Dr....@t-...> - 2005-06-24 11:24:04
|
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. Albert -- Dr. Albert Gr"af Dept. of Music-Informatics, University of Mainz, Germany Email: Dr....@t-..., ag...@mu... WWW: http://www.musikwissenschaft.uni-mainz.de/~ag |