I recently started working with the vtk package, and I see this odd notation that they include ;after closing curly braces }. Here is an example fromvtkUnstructuredGrid.h
int GetDataObjectType() {return VTK_UNSTRUCTURED_GRID;};
It is not needed, and QtCreator also correctly defines this, saying extra ;when parsing the code. I'm curious what could be causing this? Maybe readability?
source
share