[q-lang-users] Re: [qlang] Q 7.0 character escape syntax
Brought to you by:
agraef
From: Albert G. <Dr....@t-...> - 2006-02-17 01:21:48
|
Andrew Berg wrote: > Is there a good reason to not make the "0" in \0xff just be optional? Yes, there is. The current notation is based on the idea that what follows the backslash is just an ordinary integer literal. That's easy to remember, and no special syntax for "character numbers" is required. > I'd vote for making it an actuall error. Speaking as one who often has > trouble remembering if the "bell" is '\b' or '\g' Neither. ;-) In C it's \a. Q doesn't have a notation for BEL at all, so you'd have to write something like \7. So we have two votes in favour of making unrecognized escapes an error now. Am I the only one in the "don't care if it's sloppy" faction? ;-) 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 |