Boost logo

Boost :

Subject: Re: [boost] [gsoc 2013] draft proposal for chrono::date
From: Rob Stewart (robertstewart_at_[hidden])
Date: 2013-05-05 19:36:56


On May 5, 2013, at 10:52 AM, John Bytheway <jbytheway+boost_at_[hidden]> wrote:

> On 2013-05-05 07:28, Rob Stewart wrote:
>> On May 4, 2013, at 5:16 PM, Anurag Kalia <anurag.kalia_at_[hidden]> wrote:
>>
>>> Moreover, there are also _1st, _2nd, ... , _31st and last.
>>
>> Why not use (and extend) the placeholders used for bind?
>
> Which bind? std? boost? The Boost.Bind placeholders should be avoided because their position in the global namespace has caused lots of grief.

I was speaking more abstractly of using _1, etc.

> I'd say overloading any of these placeholders is confusing and dangerous.

Surely you don't mean using *some* _1 is confusing or dangerous.

>> date(_1, dec, 2013);
>>
>> Those are shorter and less prone to sounding odd. By the latter I mean that I'd never say "first December 2013", but would s/first/one/. OTOH,
>> I would say "December first, 2013", so perhaps we could offer ordinals, too.
>>
>> Given your preference to provide support only for the YMD order, which is not an order I would speak otherwise, I don't know whether "first" or
>> "one" is more natural, so maybe that also argues for both.
>
> FWIW, I would say "first December", not "one December"

I was in the USAF, where 1 DEC 2013 is the vernacular, pronounced "one December twenty thirteen."

> (although I'd be more likely to say "December first" or even "December the first" than
> either of those). I'm a native British English speaker.

I, too would be more likely, now, to say "December first," but that order isn't in the offing.

___
Rob

(Sent from my portable computation engine)


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk