Re: [q-lang-users] New stuff in cvs: multichar ops, views
Brought to you by:
agraef
From: Albert G. <Dr....@t-...> - 2007-05-31 11:46:07
|
Rob Hubbard wrote: > If mixed operators are not allowed, [...] No, they aren't. You can either have a sequence of punctuation symbols or an identifier, but not both in the same symbol. (Actually, I could change the lexical syntax to make that possible, but I don't think that this would be a good idea.) > [...] what about the thing that looks a > little like 'i': use something like (+:*) or (+|*) or (+!*)? That was my idea with '+:'. I can easily read that as "plus i times". '+!' looks nice to me, too. ('+:' might confuse Haskell programmers as they'll easily mistype it as ':+'.) > Alternatively, what about allowing mixed multi-character operator and > function names delimited by something, such as [brackets]: 0[+i*]1. That's not possible. The parens/brackets/braces are reserved delimiters which cannot occur in an operator symbol. Albert -- 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 |