std.stdio.writeln

ketmar via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Mar 9 15:00:46 PDT 2015


On Mon, 09 Mar 2015 13:18:58 -0700, Jonathan M Davis via
Digitalmars-d-learn wrote:

> On Monday, March 09, 2015 15:45:58 ketmar via Digitalmars-d-learn wrote:
>> On Mon, 09 Mar 2015 14:48:19 +0000, John Colvin wrote:
>>
>> > Yet another excellent example of why we should abolish the comma
>> > operator in D.
>>
>> or at least warn about it. producing a warning for such expression will
>> ring a bell in programmers head: "compiler is unhappy. i definitely
>> doing something wrong here!"
> 
> There's not much point in that. If someone is using the comma operator
> correctly, then the warnings would be incredibly annoying. And if we
> value avoiding comma operator-related bugs over letting folks take
> advantage of its usefulness enough to consider such a warning, we might
> as well just deprecate the comma operator and move towards removing it
> from the language.
> Either it's there and useful but error-prone, or it's gone. In between
> just annoys both groups.

i remember that deprecation was rejected. maybe this is false memory, 
though.

btw, there are legit uses of comma, in c-style `for`, for example. this 
should be left intact, i think (oh, can c-style `for` be deprecated too?!
).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20150309/a103ff51/attachment.sig>


More information about the Digitalmars-d-learn mailing list