Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More

Shamefully, after years of c++ hobbyism, I've only now discovered the ABSOLUTE BEAUTY of constexpr
I thought it was just the "new way of defining constants", so I always skipped over it as more of a basic utility than a hugely powerful part of c++
I didn't realize it could do comptime code! I can pre-compile huge arrays into my binary just like I could with comptime in zig.
Fuck me, I feel stupid as hell. More c++ rants to come, surely.
rant