News for hackers. Stuff that matters.
Re:Dart language by jmtame on Monday October 10, 2011 @07:08AM (#3093231)
Also, string interpolation using only double quotes has bothered me in Rails. That was the one feature I saw that they supported, although now that I think about it, Rails probably adopted it as a convention to prevent excessive escaping.
Re:Dart language by manveru on Monday October 10, 2011 @07:20AM (#3093269)
That's Ruby, not Rails. It allows you to influence how your content should be escaped, so you write '\n' instead of "\\n" and '"' instead of "\"", it's actually pretty handy in practice.
Re:Dart language by jeltz on Monday October 10, 2011 @09:00AM (#3093573)
I believe this interpolation difference in Ruby originates from Perl which in turn got it from bash and other UNIX shells. I actually like the fact that Ruby and Perl have so many way to quote a string a lot since I have always hated excessive escaping.