logoalt Hacker News

ameliaquiningtoday at 2:09 AM1 replyview on HN

I think these things are used more for developer experience than for performance, since you can always just do the initialization in main if you really have to.


Replies

Animatstoday at 2:10 AM

It's something of an issue if you have some crate that needs to set itself up at load time without a call from main. But those are very rare. Even "simplelog" needs a call at startup to do anything.

show 1 reply