OOP like handler inheritance

Everything you showed is achievable in many FP languages. You’ll have to specify what you cannot do in particular because I don’t see such a thing.