Re: backslashes and r-strings r"abc"
Greg Ewing <[email protected]> Tue, 27 Jul 2004 14:09:09 +1200
| Newsgroups | gmane.comp.lang.prothon.user |
|---|---|
| Message-ID | <[email protected]> |
Martin Christensen <[email protected]>: > As I see it, the best alternative to the usual way of handling escape > characters is for Strings to have a 'process escape characters' method Another way would be to have a set of constants like tab, newline, etc. and build up strings with these: "hello" + tab + "world" + newline For best results the compiler would constant-fold this into a single string literal. Greg Ewing, Computer Science Dept, +--------------------------------------+ University of Canterbury, | A citizen of NewZealandCorp, a | Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. | [email protected] +--------------------------------------+