A tag for questions related to the design of any aspect of programming languages.
Why doesn't the compiler automatically put break statements after each code block in the switch? Is it for historical reasons? …
java switch-statement case language-design breakWhy is friendship not at least optionally inheritable in C++? I understand transitivity and reflexivity being forbidden for obvious reasons (…
c++ inheritance language-design friendYesterday I was having a heated debate with a coworker on what would be the preferred error reporting method. Mainly …
language-agnostic language-designHere's an excerpt from Sun's Java tutorials: A switch works with the byte, short, char, and int primitive data types. …
java switch-statement long-integer language-designI 'm trying to do : award_dict = { "url" : "http://facebook.com", "imageurl" : "http://farm4.static.flickr.com/3431/3939267074_feb9eb19b1_…
python dictionary language-design language-featuresI am just wondering why the Java 7 switch statement does not support a null case and instead throws NullPointerException? See …
java switch-statement language-designI've never really understood why C++ needs a separate header file with the same functions as in the .cpp file. …
c++ language-designMaybe this question has been answered before, but the word if occurs so often it's hard to find it. The …
c# language-design scopewith Java5 we can write: Foo[] foos = ... for (Foo foo : foos) or just using an Iterable in the for loop. …
java language-designIs there a Python design decision (PEP) that precludes a sorted container from being added to Python? (OrderedDict is not …
python language-design sortedset sortedmap