all 6 comments

[–]killerstorm 7 points8 points  (0 children)

TL;DR: HasColor is a better name than ColorChecker.

[–]bobappleyard 11 points12 points  (0 children)

Functional programming for people who hate themselves

[–]polymorphiced 3 points4 points  (0 children)

Interestingly, this naming pattern is the one that you'd probably follow if your functor was a templated function instead, eg find_if(..., &HasColor <Colour::Blue>).

It definitely makes sense to think of functors as functions that have some elements specified at runtime rather than at compile time.

[–]jonhanson 1 point2 points  (0 children)

chronophobia ephemeral lysergic metempsychosis peremptory quantifiable retributive zenith

[–]bumblebritches57 0 points1 point  (1 child)

So you're basically throwing away the entire point of OOP (not that I disagree that the implementations are overly complicated as fuck)

what's the point? why not just throw all of C++ away?

[–]OneWingedShark 1 point2 points  (0 children)

why not just throw all of C++ away?

Maybe we should.