Hot reload is the raison d'etre game engines usually have scripting languages as Lua.
Hot reloading the programming language the engine is written in is definitely better though.
Incidentally, this is on the short-list of reasons why C# is very popular for writing video games. Excellent average performance, decent support for hot-reload. You just have to be careful to not produce garbage every frame, which means writing the code how you would do it in C++/Rust/Zig/C anyway.