Originate / recouple

Declarative and type-safe API bridging. Write full-stack applications with ease.
MIT License
4 stars 1 forks source link

reduce type duplication in visitor interface #30

Open astampoulis opened 6 years ago

astampoulis commented 6 years ago

27 Introduced extensible visitors. The way that this is done right now involves some type duplication between the definition of the different Middleware constructors, and the definition of the type of visitors. (Each Middleware constructor needs to have a corresponding handle method with the right types.) This ticket is about exploring how to reduce that type duplication, maybe by using $ObjMap and other fancy stuff.