--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
In general, we tend to favour long-term readability rather than writability.
On Thu, Sep 25, 2014 at 11:29 AM, Ryan Sleevi <rsl...@chromium.org> wrote:In general, we tend to favour long-term readability rather than writability.I agree, but I agree with Alex that the no-slashes form is significantly more readable. So to me readability is precisely the argument for doing this.I think if your code really makes it hard to tell where a string ends with this, it's likely hard to tell where the string ends without it too. I can't think of a case where I'd have a _harder_ time with raw strings.
Certainly in Alex' examples I find it no harder to spot the end of the string in the new version. Quotes look like quotes either way.
PK--
On Thu, Sep 25, 2014 at 2:01 PM, Peter Kasting <pkas...@chromium.org> wrote:On Thu, Sep 25, 2014 at 11:29 AM, Ryan Sleevi <rsl...@chromium.org> wrote:In general, we tend to favour long-term readability rather than writability.I agree, but I agree with Alex that the no-slashes form is significantly more readable. So to me readability is precisely the argument for doing this.I think if your code really makes it hard to tell where a string ends with this, it's likely hard to tell where the string ends without it too. I can't think of a case where I'd have a _harder_ time with raw strings.Sure you can, it's C++! Quick, what's:R"x%/uR(%b)x%/uR"?More seriously, if we want to go for this, perhaps not allowing custom delimiters (or whatever they're called) for a while would break less tools.
(I was just being silly, that's obviously "not lgtm".)
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev+unsubscribe@chromium.org.
I don't think we're using VC++ 2013 anymore. Is it safe to allow these now?
On Fri, Aug 19, 2016 at 8:37 AM, 'Alex Clarke' via Chromium-dev <chromi...@chromium.org> wrote:I don't think we're using VC++ 2013 anymore. Is it safe to allow these now?If our bots are happy with it, I have no objections. Unless Dana or Nico objected, I'd lgtm a CL that added a use and updated c++11.html to allow it.
On Fri, Aug 19, 2016 at 10:20 AM, Jeremy Roman <jbr...@chromium.org> wrote:On Fri, Aug 19, 2016 at 8:37 AM, 'Alex Clarke' via Chromium-dev <chromi...@chromium.org> wrote:I don't think we're using VC++ 2013 anymore. Is it safe to allow these now?If our bots are happy with it, I have no objections. Unless Dana or Nico objected, I'd lgtm a CL that added a use and updated c++11.html to allow it.
Errm, by that I mean our build works, _and_ line numbers are correct with MSVC, clang and gcc (assuming I'm correct in thinking we still use gcc on some platform -- one of the CrOS builds, maybe?).
On Fri, Aug 19, 2016 at 7:21 AM, Jeremy Roman <jbr...@chromium.org> wrote:On Fri, Aug 19, 2016 at 10:20 AM, Jeremy Roman <jbr...@chromium.org> wrote:On Fri, Aug 19, 2016 at 8:37 AM, 'Alex Clarke' via Chromium-dev <chromi...@chromium.org> wrote:I don't think we're using VC++ 2013 anymore. Is it safe to allow these now?If our bots are happy with it, I have no objections. Unless Dana or Nico objected, I'd lgtm a CL that added a use and updated c++11.html to allow it.SGTM. Maybe recommend using () as the delimiter in the comments aka "(...)"? The google style guide appears to be silent on this, but having some sorta consistency may be nice.
On Fri, Aug 19, 2016 at 2:40 PM, <dan...@chromium.org> wrote:On Fri, Aug 19, 2016 at 7:21 AM, Jeremy Roman <jbr...@chromium.org> wrote:On Fri, Aug 19, 2016 at 10:20 AM, Jeremy Roman <jbr...@chromium.org> wrote:On Fri, Aug 19, 2016 at 8:37 AM, 'Alex Clarke' via Chromium-dev <chromi...@chromium.org> wrote:I don't think we're using VC++ 2013 anymore. Is it safe to allow these now?If our bots are happy with it, I have no objections. Unless Dana or Nico objected, I'd lgtm a CL that added a use and updated c++11.html to allow it.SGTM. Maybe recommend using () as the delimiter in the comments aka "(...)"? The google style guide appears to be silent on this, but having some sorta consistency may be nice.To be clear, () is required by the language. You can just add more to that, but I would only expect people to do that if the string )" appears in their string, so I don't think we need to be explicit.
I think they are still broken in GCC 4.8 (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57824, maybe?) which I think we still use on CrOS and possibly Android?
On Fri, Sep 2, 2016 at 12:18 PM, Dirk Pranke <dpr...@chromium.org> wrote:I think they are still broken in GCC 4.8 (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57824, maybe?) which I think we still use on CrOS and possibly Android?Android's on 4.9. That bug is about raw string literals as macro arguments; most raw string literals probably aren't used as macro arguments...is that's the only problem, I think we could generally allow them (and mention this known bug).