C++ Logo


Advanced search

Re: [SG10] Digit separators

From: Jens Maurer <Jens.Maurer_at_[hidden]>
Date: Sun, 16 Mar 2014 15:47:57 +0100
On 03/13/2014 05:57 PM, Nelson, Clark wrote:
> A long-delayed reply:
> From: Richard Smith
> Sent: Saturday, February 22, 2014 3:13 PM
>> I'm a little concerned about providing a digit separators feature test macro. It seems to encourage people to use digit separators in #ifdef'd code, which doesn't work, so I'm not sure how much value the macro adds.
> I agree that there's a problem here. Of course I would say, without
> qualification, that the problem is caused entirely by the syntax selected
> for digit separators.

Well, with a macro, one could do the following:

#include "readable_file_with_constants.h"
#include "unreadable_constants.h"

This should still work, even with the interesting syntax that
digit separators chose to employ.

Thus, I believe we should provide a macro.


Received on 2014-03-16 15:53:03