A tag for questions related to the design of any aspect of programming languages.
a statement that checks if something is true and if not prints a given error message and exits
r assert language-design assertionsIf we need to write a new line to a file we have to code: file_output.write('Fooo line \…
python syntax history language-designI know you can define them indirectly achieve something similar with companion objects but I am wondering why as a …
class scala static language-design static-membersSome popular programming languages use month numbering which is off by 1 -- JavaScript comes to mind, as does Java, and …
date language-agnostic language-designOne of the basic data types in R is factors. In my experience factors are basically a pain and I …
r language-design internals r-factorI'd love to be able to do this: class myInt : public int { }; Why can't I? Why would I want to? …
c++ inheritance integer language-design strong-typingHaving a friendly debate with a co-worker about this. We have some thoughts about this, but wondering what the SO …
c# immutability language-design readonlyI was wondering why I can not have generic property in non-generic class the way I can have generic methods. …
c# generics properties language-design language-specificationsWhy does COBOL have both SECTION and PARAGRAPH? Can anybody explain why the designers of COBOL created both SECTIONs and …
language-design cobolC++ references have two properties: They always point to the same object. They can not be 0. Pointers are the opposite: …
c++ pointers reference language-design