I'm looking through the source code for the v8 javascript engine (here's the github link), and on line 33 of parsing.cc, there's this statement within a function:
Parser parser(info);
I'm only used to seeing a type declaration like this before an assignment, such as:
Parser myparser = Parser(...);
So what does the first example do? Why not just invoke parser(info)
without a type declaration?
Thank you in advance.