Difference Between 学校 and 学堂
The connotation of 学堂 is more than "an old expression of school", but "an old-style school in ancient China". A typical 学堂 only has one room and one teacher and few students (compared with a modern school). Just imagine the place where Confucius taught his followers. 

学校:


学堂: