Re: [RFD] Expanded Pretty Format Placeholders Proposal

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Will Palmer <wmpalmer@xxxxxxxxx> writes:

> On Fri, 2011-03-11 at 00:47 +0000, Will Palmer wrote:
> ...
>> 	%(foo-condition: %(format: %H, aka %h), %H )
>
> of course, this conflicts with the need to embed a literal ")" within a
> sub-format. The simplest option for this would be to either allow %) as
> an escape, as with %%. Even simpler, of course, would be %x29, but this
> seems needlessly obscure. The only objection I have to %) is "It's
> ugly". To me, %(format: "this is a paren: )") is easier to read, but
> that would just be moving the problem around, adding the necessity of
> the just-as-ugly-or-moreso %", or alternatively C-style \" and \\.
> So I think that %) will be the best option.

I somehow had an impression that you will be using "" to quote strings to
protect leading or trailing whitespaces, and if you were to support double
quotes anyway, \" and \\ become a very natural thing to do (so does your
"close parenthesis inside dq").
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]