Kevin Scaldeferri on 18 May 2003 21:50:01 -0000 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: [ALACPP] GotW solutions out |
On Sunday, May 18, 2003, at 02:21 PM, Christopher Smith wrote:
On Sun, 2003-05-18 at 14:23, Kevin Scaldeferri wrote:Also, I'm trying to think why \ needs to function as a continuation character in a language which isn't sensitive to whitespace. In factit seems like the _only_ function of it is to enable subtle bugs of thesingle-line-comment-isn't variety.Well that one is easy. It's handy for really long string literals or macros.
Ah, yes, I'd forgotten that while the rest of the language is whitespace-insensitive, the preprocessor is not.
However, it doesn't seem to me like this is much of a win for string literals versus just letting it wrap over in your editor. Readability isn't increased, since you still have to restart on the first column of the next line, and I'd be worried about editor auto-indentation screwing things up. (Emacs seems to indent correctly in this case, but vim doesn't seem to.)
Kevin _______________________________________________ alacpp mailing list alacpp@xxxxxxxxxxx http://lists.ellipsis.cx/mailman/listinfo/alacpp