Hacker News new | ask | show | jobs
by combatentropy 2851 days ago
I was wondering why the API makes you write transaction twice:

    transaction->begin(transaction)
Why not:

    transaction->begin()
2 comments

It looks like transaction is just a C struct with function pointer fields, not an actual C++ class, so there is no implicit `this` argument.
no "self" in C.