Indeed, Popper wrote, several decades before Gray's criticism, in reply to a critical essay by Imre Lakatos: