From: Martin H. <ma...@he...> - 2004-02-17 18:53:12
|
Hi Michael, Michael Reinelt wrote: >=20 > so lets try all the delimiters I can find: >=20 > xmms^filename: NO (power 3^2) > xmms=B0filename: NO (not standard ASCII) > xmms!filename: NO (logical NOT) > xmms"filename: NO (uncool) > xmms=A7filename: maybe > xmms$filename: maybe > xmms%filename: NO (modulo) > xmms&filename: maybe > xmms/filename: NO (division) > xmms(filename: NO > xmms)filename: NO > xmms=3Dfilename: NO (equality, assignment) > xmms?filename: NO (implicit if) > xmms`filename: NO (string delimiter) > xmms?filename: NO (dangerous becaue looks like `) > xmms+filename: NO (addition) > xmms*filename: NO (multiplication) > xmms~filename: NO (bitwise not) > xmms#filename: NO (comment) > xmms<filename: NO (less than) > xmms>filename: NO (greater than) > xmms|filename: NO (logical OR) > xmms,filename: NO (expression list) > xmms;filename: maybe, but uncool > xmms.filename: NO (string concatenation) > xmms:filename: NO (implicit if) > xmms_filename: NO (normal char) > xmms-filename: NO (subtraction) > xmms@filename: maybe, but uncool >=20 > Did I forget something? >=20 > Votes are welcome! I'd vote for "$" - that's the first one that came to my mind. What I=20 like about it is that it's a plain ascii character (no danger of messing = things up with UTF8 - which "=A7" does for example). From (briefly) looking at the evaluator, I guess it should also be=20 possible to use more than one character as a delimiter, without things=20 getting _too_ complicated (so, "::" or "->" should be doable). But I=20 don't see the need to do the extra work, which is why I'd vote for "$". If you want to get _really_ fancy (or if I lose my job and have tons of=20 time to spare), one could also extend the evaluator to do a more=20 sophisticated scanning/parsing (by writing up a grammar and feeding that = to lex and yacc), but I guess none of us has that much time to spare=20 (especially for little or no additional benefit). > another possibility would be to use another char for string=20 > concatenation (but which one? I used the dot because Perl does so) Well, it wouldn't really change anything - since then, we'd be looking=20 for a new separator for concatenation (and there's no "natural" one,=20 unless you think in Basic, where "+" or "&" are used for concatenation - = not terribly elegant, especially since it's already used anyway). Martin --=20 You think that's tough? Try herding cats! |