The main problem with « and » for me is that I need to use Compose + shift [<,] + shift [<,] Compose + shift [>.] + shift [/.]
([>.] and [<,] are the keys with these two chars on them)
That's kind of a pain if it was used for normal coding. I vote for this syntax:
write(«-· Hello world! ·-»);
That looks all nice and pretty! And no, I'm obviously not really serious, but I can't think of any good options really. Of course, the '"""' type syntax really isn't such a bad idea, except perhaps in terms of actually parsing it correctly (backwards compatibility with odd code like write("""hello") for example).
write("""This is my funny \ piece of "test text" to show the "useful "syntax"" or so.""");
/ David Hedbor
Previous text:
2003-09-21 14:02: Subject: wish: string with other quoting then \
Maybe like this, for instance?
««string»» as in ««^(.*)[a-z]*$»»
with the optional
«blockstring«string»blockstring»
as in
«FOO« int main() { werror(««hello, world!»»"\n"); } »FOO»
...mind that it's probably not a good idea to use 8-bit characters; those above are just an example. Even if I don't have a problem with it, most developers have a hard time typing in « and », so some effort should be put on replacing those with some ASCII solution.
/ Mirar