Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Are all of these proc macros worth it? The compile times for proc macros explode.

I'd rather hand-roll errors than deal with more proc macros. Or better yet, have code gen pay the cost once and never deal with it again.



Cognitive load is more expensive than compilation time.


Compilation time turns into cognitive load via frustration. Death by a thousand cuts.


How long are your compiles? The longest I’ve ever seen is a massive Bevy project with 700 dependencies, and it still compiled in <5min from an empty cache, and then 2-3 second incremental builds (mostly link time).


https://xkcd.com/303/

(compilation time is good for brain switch off time - i.e. reducing cognitive load).


I find it's great for letting ADHD take over steering the ship and losing total focus on what needs to be done.

Which is more or less what this XKCD encapsulates.


Frankly, std::io:Error::other is good enough most of the time.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: