Die link legt uit dat C# op dit punt liever iets te betuttelend is ipv dan dat er van de programmeur enige intelligentie verwacht wordt. Dank je wel he.
As a result of the C# rules requiring explicit flow-control to occur at the end of a case block (most usually a break), many people question why the behavior simply wasnt changed such that fall-through didnt occur. That is, dont make break required, simply change the semantics of switch to not have fall-through for cases. The reason this wasnt done was so that developers who were very used to C++ wouldnt have a hard time understanding what a switch statement was doing.
Leuk argument, geen implicit breaks zodat het op C++ lijkt. WTF? Hallo:
• C++ gebruikt implicit fall-though.
• 'developers who were very used to C++' gaan nu juist de mist in omdat de syntax erop lijkt, maar je geen break mag weglaten.
• 'developers who were very used to C++' zijn fall-through gewend en denken daar al automatisch aan.