On Mon, 16 Nov 2009 11:58:44 +0300, MIURA Masahiro <echocham...@gmail.com>
wrote:
On 11/16/2009 02:49 AM, Chad J wrote:
So, switch-case statements are a frequent source of nasty bugs. Fixing
them (well) requires breaking backwards compatibility.
Any chance this will happen for D2?
If I remember correctly, one of D's design policies is
that a D code that looks like C code should behave like C.
Are we giving up that policy?
It is a good policy to follow but there are cases where C behavior may
differ from D behavior (when code is copy-pasted and not adjusted
according to languages difference). I've just posted an example in a
different thread:
http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D&article_id=101322