[Submission] D Slices

KennyTM~ kennytm at gmail.com
Tue May 31 11:24:36 PDT 2011


On Jun 1, 11 02:12, eles wrote:
> == Quote from Andrei Alexandrescu (SeeWebsiteForEmail at erdani.org)'s
> article
>> On 5/31/11 11:10 AM, eles wrote:
>>> I hope some day someone would not have to write a paper like
> http://
>>> drdobbs.com/blogs/cpp/228701625 but targetting... D's biggest
> mistake
>>> was to use open-limit on the right.
>> I sure wish that were the biggest mistake! :o)
>> Andrei
>
> Maybe you are right and there are others, too.
>
> Is off-topic, but I won't understand why D did not choose to
> explicitly declare intentions of "break" or "fall" after branches in
> switch statements (while dropping implicit "fall").
>
> It won't break existing or inherited (from C) code. It will just
> signal that it is illegal and force the programmer to revise it and
> to make sure it behaves as intended.
>

This has been discussed a lot of times before. See 
http://digitalmars.com/d/archives/digitalmars/D/About_switch_case_statements..._101110.html#N101112.


More information about the Digitalmars-d mailing list