What is the purpose of the Most Vexing Parse?
Let’s say MVP didn’t exist. How would you declare a function? A foo(); would be a variable definition, not a method declaration. Would you introduce a new keyword? Would you have a more awkward syntax for a function declaration? Or would you rather have A foo; define a variable and A foo(); declare a function? … Read more