@Wes my instinct was "WTF", but actually,
new class{}
does kind of declare a permanent class, because two objects created from the same line have the same class:
3v4l.org/RiFvX ... so maybe putting that class into the main symbol table isn't completely crazy