Displaying 4 results from an estimated 4 matches for "ismyconditiontrue".
2014 Oct 13
3
[LLVMdev] RFC: variable names
On Oct 13, 2014, at 3:44 PM, Chandler Carruth <chandlerc at google.com> wrote:
> I actually have a particular allergy to member variable names and function names having similar styles:
>
> bool x = i->isMyConditionTrue;
>
> Did I mean to write 'isMyConditionTrue()'? Or 'bool &x = I->isMyConditionTrue'? Or something else? I have no idea. Warnings and other things can help reduce the likelihood of this becoming a live bug, but it still makes the code harder to read IMO.
This is exactl...
2014 Oct 13
5
[LLVMdev] RFC: variable names
...apple.com> wrote:
>
>> On Oct 13, 2014, at 3:44 PM, Chandler Carruth <chandlerc at google.com>
>> wrote:
>> > I actually have a particular allergy to member variable names and
>> function names having similar styles:
>> >
>> > bool x = i->isMyConditionTrue;
>> >
>> > Did I mean to write 'isMyConditionTrue()'? Or 'bool &x =
>> I->isMyConditionTrue'? Or something else? I have no idea. Warnings and
>> other things can help reduce the likelihood of this becoming a live bug,
>> but it still makes...
2014 Oct 13
3
[LLVMdev] RFC: variable names
> If we are going to change how we name variables, I very much want them to
> not collide with either type names or function names. My suggestion would be
> "lower_case" names.
>
> This also happens to be the vastly most common pattern across all C++ coding
> styles and C-based language coding styles I have seen.
STL has "lower_case" functions, and exposes
2014 Oct 14
2
[LLVMdev] RFC: variable names
...ct 13, 2014, at 3:44 PM, Chandler Carruth <chandlerc at google.com>
>>>> wrote:
>>>> > I actually have a particular allergy to member variable names and
>>>> function names having similar styles:
>>>> >
>>>> > bool x = i->isMyConditionTrue;
>>>> >
>>>> > Did I mean to write 'isMyConditionTrue()'? Or 'bool &x =
>>>> I->isMyConditionTrue'? Or something else? I have no idea. Warnings and
>>>> other things can help reduce the likelihood of this becoming a live b...