On Tue, May 12, 2015 at 7:29 AM, Ehsan Akhgari <ehsan.akhg...@gmail.com>
wrote:

> On 2015-04-30 7:57 AM, Xidorn Quan wrote:
>
>> On Thu, Apr 30, 2015 at 10:14 PM, Robert O'Callahan <rob...@ocallahan.org
>> >
>> wrote:
>>
>>  On Sat, Mar 21, 2015 at 4:14 AM, <bo...@mozilla.com> wrote:
>>>
>>>  * member initializers
>>>>
>>>>
>>> Should we have any rules around these, or should we use them
>>> indiscriminately? I wonder particularly about initializers which are
>>> complicated expressions.
>>>
>>>
>> I guess we probably should forbid using any expression with side effect
>> for
>> member initializers.
>>
>
> Hmm, why should we restrict them more than what can appear in the
> constructor initializer list


Because it seems to me that, the member initializers are more obscure for
their initializing order. Given they can be disperced widely in different
places, it would be far harder to reason out the correctness from a piece
of code if the initializers could have side effect.

- Xidorn
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to