Re: [q-lang-users] Query about Type Tests (Complex and Rational).
Brought to you by:
agraef
From: Albert G. <Dr....@t-...> - 2006-06-16 21:56:27
|
John Cowan wrote: > I would assume these predicates return false on non-numbers. Hmm, I wouldn't. The concept of 'exactness' applies to numbers, so I would let isexact fail on objects which are not of type Num. But of course in Q it's easy for the programmer to then just add an equation 'isexact _ = false otherwise' to his application if he thinks that this is more appropriate. -- 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 |