DEV Community

Discussion on: Encoding HKTs in TS4.1

mikearnaldi profile image
Michael Arnaldi Author • Edited on

Nr 1 can be avoided as long as you don't use the ts equivalent of rank n types (which seems like a fair cost for the simplicity of the implementation).

If that is your objective yes, you can probably simplify it further.

In that encoding I still don't find how to make transformers work like:

Personally I prefer making the low level implementation complex (as it does not target user-land code) and provide more features that works smoothly.