Re: [q-lang-users] Complex numbers
Brought to you by:
agraef
From: John C. <co...@cc...> - 2006-06-12 22:03:27
|
Albert Graef scripsit: > unparse (comp_rect X Y) = '(X+Y*i); And likewise "unparse (rat X Y) = '(X/Y)"? > Of course this goes a long way to handle such simple things like complex > or rational numbers. But this feature could be useful for other data > types, too, in particular external types. What do you all think about > it? Is it "the right thing"? Sounds excellent to me. Of course, there would be the risk that whatever the pretty-printer produced would not in fact parse and evaluate to the same thing, but that's the price you pay for sharp tools. -- A few times, I did some exuberant stomping about, John Cowan like a hippo auditioning for Riverdance, though co...@cc... I stopped when I thought I heard something at http://ccil.org/~cowan the far side of the room falling over in rhythm with my feet. -- Joseph Zitt |