Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Faggotry

Name: Anonymous 2014-05-28 5:44

Why do C++ faggots write
auto dist = [&](uint32_t col1, uint32_t col2) { return colorDist(col1, col2, cfg.luminanceWeight_); };
template <typename T> T min(T a, T b) {return a < b ? a : b;}

instead of
#define dist(col1, col2) colorDist(col1, col2, cfg.luminanceWeight_)
#define min(a,b) ((a) < (b) ? (a) : (b))


???

I find C++ especially verbose.

Name: Anonymous 2014-05-28 18:30

>>7
functors are category structure preserving maps. Anything else nonsensical you'd like to add?

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List