Escaping control in formatting

2012-04-23 Thread Denis Shelomovskij
I've never used new excellent range formatting syntax by Kenji Hara until now. And I've met with difficulties, because "%(%(%c%), %)" is the most common format for string array for me and it neither obvious nor elegant. It occurs that "%c" disables character escaping. What the hell? Why? Not ob

Re: Escaping control in formatting

2012-04-23 Thread Dmitry Olshansky
On 23.04.2012 16:36, Denis Shelomovskij wrote: I've never used new excellent range formatting syntax by Kenji Hara until now. And I've met with difficulties, because "%(%(%c%), %)" is the most common format for string array for me and it neither obvious nor elegant. It occurs that "%c" disables c

Re: Escaping control in formatting

2012-04-23 Thread kenji hara
2012年4月23日21:36 Denis Shelomovskij : > I've never used new excellent range formatting syntax by Kenji Hara until > now. And I've met with difficulties, because "%(%(%c%), %)" is the most > common format for string array for me and it neither obvious nor elegant. It > occurs that "%c" disables chara

Re: Escaping control in formatting

2012-04-23 Thread Denis Shelomovskij
23.04.2012 18:54, kenji hara написал: Please give us use cases. I cannot imagine why you want to change/remove quotations but keep escaped contents. Sorry, I should mention that !' and !" are optional and aren't commonly used, and all !?* are very optional and are here just for completeness (IM

Re: Escaping control in formatting

2012-04-23 Thread kenji hara
2012年4月24日1:14 Denis Shelomovskij : > 23.04.2012 18:54, kenji hara написал: > >> Please give us use cases. I cannot imagine why you want to >> change/remove quotations but keep escaped contents. > > > Sorry, I should mention that !' and !" are optional and aren't commonly > used, and all !?* are ve

Re: Escaping control in formatting

2012-04-23 Thread Denis Shelomovskij
23.04.2012 21:15, kenji hara написал: 2012年4月24日1:14 Denis Shelomovskij: 23.04.2012 18:54, kenji hara написал: Please give us use cases. I cannot imagine why you want to change/remove quotations but keep escaped contents. Sorry, I should mention that !' and !" are optional and aren't common

Re: Escaping control in formatting

2012-04-23 Thread Denis Shelomovskij
23.04.2012 21:49, Denis Shelomovskij написал: 23.04.2012 21:15, kenji hara написал: 2012年4月24日1:14 Denis Shelomovskij: 23.04.2012 18:54, kenji hara написал: Please give us use cases. I cannot imagine why you want to change/remove quotations but keep escaped contents. Sorry, I should mentio

Re: Escaping control in formatting

2012-04-23 Thread kenji hara
2012年4月24日2:49 Denis Shelomovskij : > 23.04.2012 21:15, kenji hara написал: >> >> 2012年4月24日1:14 Denis Shelomovskij: >>> >>> 23.04.2012 18:54, kenji hara написал: >>> >>> Please give us use cases. I cannot imagine why you want to change/remove quotations but keep escaped contents. >>> >>>

Re: Escaping control in formatting

2012-04-24 Thread Denis Shelomovskij
On Tuesday, 24 April 2012 at 04:55:34 UTC, kenji hara wrote: My concern is that the proposal is much complicated and less useful for general use cases. You can emulate such formatting like follows: IMHO addition of %!+s and %!-s alone and removing %c's magic will only simplify formatting for

Re: Escaping control in formatting

2012-04-24 Thread kenji hara
2012年4月24日17:20 Denis Shelomovskij : > On Tuesday, 24 April 2012 at 04:55:34 UTC, kenji hara wrote: >> >> My concern is that the proposal is much complicated and less useful >> for general use cases. >> You can emulate such formatting like follows: > > > IMHO addition of %!+s and %!-s alone and rem

Re: Escaping control in formatting (again)

2012-05-07 Thread kenji hara
specifiers. How about you? Kenji Hara 2012/5/6 Denis Shelomovskij : > Sorry for wasting your time again, but I'm so silly that I still believe I > was right in previous thread about enabling escaping control in formatting. > > To convince me I'm wrong, pleas write t

Re: Escaping control in formatting (again)

2012-05-07 Thread Denis Shelomovskij
07.05.2012 11:39, kenji hara написал: In prev thread, I have posted a proposal, but it didn't posted to newsgroup, I don't know why. I re-post my proposal. If the leading compound format specifier has a '-' flag, like "%-( ... %)", it disables auto-escaping for the elements formatting. wri

Re: Escaping control in formatting (again)

2012-05-07 Thread kenji hara
Posted pull request: https://github.com/D-Programming-Language/phobos/pull/573 Kenji Hara 2012/5/7 Denis Shelomovskij : > 07.05.2012 11:39, kenji hara написал: > >> In prev thread, I have posted a proposal, but it didn't posted to >> newsgroup, I don't know why. >> I re-post my proposal. >> >> --