Re: [q-lang-users] Complex numbers
Brought to you by:
agraef
From: Albert G. <Dr....@t-...> - 2006-06-13 10:07:06
|
Errata: > type Rat = private const rat P Q; Of course that should read: public type Rat = private const rat P Q; > The application to complex.q and rational.q is obvious. But I'm also > considering equipping the standard container types with unparsing rules, > e.g., the result of dict [(1,2),(3,4)] would then actually be printed as > dict [(1,2),(3,4)]. Any objections? That is, "dict [(1,2),(3,4)]" would be printed instead of "dict::bin 2 (1,2) dict::nil (dict::bin 1 (3,4) dict::nil dict::nil)". Besides being prettier this also serves the purpose of information hiding. Of course this kind of custom pretty-printing must be disabled in the debugger. -- Dr. Albert Gr"af Dept. of Music-Informatics, University of Mainz, Germany Email: Dr....@t-..., ag...@mu... WWW: http://www.musikinformatik.uni-mainz.de/ag |