Re: [q-lang-users] New stuff in cvs: multichar ops, views
Brought to you by:
agraef
From: Rob H. <hub...@gm...> - 2007-05-31 08:41:22
|
> > As a first exercise, I just comitted some changes which turn Complex > > into an ADT with the virtual constructor (:+). So the constant i now > > prints as 0:+1. > > I don't like that much. I suppose there is no way to make 0+1*i the > constructor/view? I guess not, since Q is eager. What about 0+i*1 if the constructor could be (+i*)? I don't know if this kind of mixed operator is allowed, nor whether it would be a good idea to do so. If mixed operators are not allowed, what about the thing that looks a little like 'i': use something like (+:*) or (+|*) or (+!*)? Alternatively, what about allowing mixed multi-character operator and function names delimited by something, such as [brackets]: 0[+i*]1. Yes, that's still pretty ugly. Rob. |