digitalmars.D.bugs - [Issue 2658] New: Remove EscapeString literals.
- d-bugmail puremagic.com (17/17) Feb 13 2009 http://d.puremagic.com/issues/show_bug.cgi?id=2658
- d-bugmail puremagic.com (5/5) Feb 13 2009 http://d.puremagic.com/issues/show_bug.cgi?id=2658
- d-bugmail puremagic.com (6/6) Feb 13 2009 http://d.puremagic.com/issues/show_bug.cgi?id=2658
- d-bugmail puremagic.com (4/4) Feb 13 2009 http://d.puremagic.com/issues/show_bug.cgi?id=2658
- d-bugmail puremagic.com (4/4) Feb 16 2009 http://d.puremagic.com/issues/show_bug.cgi?id=2658
- d-bugmail puremagic.com (6/6) Feb 16 2009 http://d.puremagic.com/issues/show_bug.cgi?id=2658
- d-bugmail puremagic.com (5/5) Feb 16 2009 http://d.puremagic.com/issues/show_bug.cgi?id=2658
- d-bugmail puremagic.com (10/13) Feb 16 2009 http://d.puremagic.com/issues/show_bug.cgi?id=2658
- d-bugmail puremagic.com (6/6) Feb 18 2009 http://d.puremagic.com/issues/show_bug.cgi?id=2658
- d-bugmail puremagic.com (5/5) Feb 20 2009 http://d.puremagic.com/issues/show_bug.cgi?id=2658
- d-bugmail puremagic.com (9/9) Mar 11 2009 http://d.puremagic.com/issues/show_bug.cgi?id=2658
http://d.puremagic.com/issues/show_bug.cgi?id=2658 Summary: Remove EscapeString literals. Product: D Version: unspecified Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P2 Component: DMD AssignedTo: bugzilla digitalmars.com ReportedBy: clugdbug yahoo.com.au The ability to create escape strings is a waste of the backslash character. "hello world" \n is not sufficiently superior to "hello world\n" --
Feb 13 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2658 Try that again with several different \ things in the string. it quickly get unreadable. --
Feb 13 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2658 Can you provide an example? Whenever I read a separated \n or \t it seems like it doesn't belong to the string and it confuses me, it makes it more unreadable. --
Feb 13 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2658 Just to clarify, I /don't/ like the suggestion. --
Feb 13 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2658 C has got by with it perfectly well for an awful long time. --
Feb 16 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2658 So has virtually every other language. I don't think I have *ever* seen the backslash string literals used in any D source. I doubt most people even know of their existence. --
Feb 16 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2658 I use them often when for literals of length 1. E.g. return stringVar ~ \n; --
Feb 16 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2658I use them often when for literals of length 1. E.g. return stringVar ~ \n;That's no where near worth the price of giving up a whole symbol in my opinion. But I think such a change should probably be bundled with an agreement on what to actually do with the freed up character. If the syntax is removed and D never does anything with it, then that's a waste. \n is not useless, it's just an underperforming use of \. What to do with it should be decided upon before giving it the axe. (lambdas were suggested somewhere). --
Feb 16 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2658 I also don't like these escaped chars hanging around on their own. Lambdas are expected to be just a minor syntax sugar for delegate literals: return statement and parameter types will be removed. --
Feb 18 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2658 It's a good idea to remove them. The feature didn't turn out to be interesting or useful, and it's time to clean out some detritus. --
Feb 20 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2658 bugzilla digitalmars.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED Fixed dmd 2.026 --
Mar 11 2009