Peter Froehlich <
peter.hans...@gmail.com> writes:
> On Fri, Nov 13, 2009 at 1:56 AM, Ian Lance Taylor <
ia...@google.com> wrote:
>> Risto Saarelma <
rsaa...@gmail.com> writes:
>>
>>> Since system programming sometimes deals with sets of bit flags, it
>>> would be nice to have a syntax for integer literals in binary.
>>> Something like this: "0b11000111 == 199".
>>
>> I've seen this suggested a couple of times. So far we have found hex
>> and octal to be satisfactory. We'll see.
>
> I may be exceedingly dense, but why wouldn't you simply wrap stuff
> like that in a function? It's not like it's hard to pull those calls
> out of inner loops, is it? (I've really never understood why people
> have anything but plain decimal integer literals in their
> languages...) The only rough spot would be const declarations I guess?
> You probably can't call functions in those?
I'm not sure I understand the suggestion. Are you asking why people