Few mixed things
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Tue Apr 21 10:00:25 PDT 2009
bearophile wrote:
> BCS:
>> you spotted the issue, code porting and principle of least surprise<
>
> - Code porting: If you port C code to D, it uses /* */ in a non nested way
No. This is valid C:
/* comment /* more comment */
> - The principle of least surprise: a C programmer doesn't nest them.
Nesting occurs often when various portions of code are commented.
> - Complexity: every syntactic bit removed from the D language is a gain.
I guess I agree with this.
> So I'm for the removal of /+ +/ and making /* */ nestable.
This can't work.
Andrei
More information about the Digitalmars-d
mailing list