Top "Language-lawyer" questions

For questions about the intricacies of formal or authoritative specifications of programming languages and environments.

C++11 introduced a standardized memory model. What does it mean? And how is it going to affect C++ programming?

C++11 introduced a standardized memory model, but what exactly does that mean? And how is it going to affect C++ …

c++ multithreading c++11 language-lawyer memory-model
In CSS Flexbox, why are there no "justify-items" and "justify-self" properties?

Consider the main axis and cross axis of a flex container:                                                                                                                                                    Source: W3C To align flex items along the …

css flexbox language-lawyer w3c
Is null reference possible?

Is this piece of code valid (and defined behavior)? int &nullReference = *(int*)0; Both g++ and clang++ compile it without …

c++ reference null language-lawyer
What is "callback hell" and how and why does RX solve it?

Can someone give a clear definition together with a simple example that explains what is a "callback hell" for someone …

javascript callback language-lawyer reactive-programming rxjs
What is the size of void?

What would this statement yield? void *p = malloc(sizeof(void)); Edit: An extension to the question. If sizeof(void) yields 1 …

c++ c language-lawyer sizeof
Is it still safe to delete nullptr in c++0x?

In c++03 it is pretty clear that deleting a null pointer has no effect. Indeed, it is explicitly stated in §5.3.5/2 …

c++ null language-lawyer delete-operator
Is std::stoi actually safe to use?

I had a lovely conversation with someone about the downfalls of std::stoi. To put it bluntly, it uses std::…

c++ standards language-lawyer
Why "using namespace X;" is not allowed inside class/struct level?

class C { using namespace std; // error }; namespace N { using namespace std; // ok } int main () { using namespace std; // ok } Edit: Want …

c++ namespaces using language-lawyer
What is the behavior of printing NULL with printf's %s specifier?

Came across an interesting interview question: test 1: printf("test %s\n", NULL); printf("test %s\n", NULL); prints: test (null) …

c linux language-lawyer compiler-bug
C++ - Why static member function can't be created with 'const' qualifier

Today I got a problem. I am in the need of a static member function, const is not a must …

c++ static language-lawyer const-method