News for hackers. Stuff that matters.
Re:Do notation considered harmful by jcelerier on Wednesday April 29, 2020 @02:32PM (#23022536)
I must say that it looks super unusual, at least for the codebases I know, for non-trivial g, h.

e.g. I just ran

    rg "[a-zA-Z0-9_]+\(.*\(.*\).*\(.*\).*\)" | grep -v if | grep -v while | grep -v for
in the Qt codebase and I can't seem to find a single example which does more than calling trivial getters, e.g. sort(v.begin(), v.end()) or foobar(point.x(), point.y())

Likely there are examples, but it's very far from the norm (and very very very very very far from the cases you have in functional languages).

There are no comments on this comment yet.