DIP23 draft: Fixing properties redux
deadalnix
deadalnix at gmail.com
Sun Feb 3 22:54:19 PST 2013
On Monday, 4 February 2013 at 05:36:10 UTC, Andrei Alexandrescu
wrote:
> On 2/3/13 11:31 PM, Jonathan M Davis wrote:
>> I tend to agree that making the parens change the nature of
>> the expression is
>> a bad idea.
>
> I think there's some misunderstanding here. Parens change the
> nature of expressions ALL the time.
>
> There is a weird rule in C++11 that makes sometimes
> typeof(expr) and typeof((expr)) mean different things. That is
> arguably an example to avoid. But introducing parens among
> parts of an expression is expected to affect meaning.
>
Weird behaviors of C++ are a very good reason to have D in the
first place.
More information about the Digitalmars-d
mailing list