Hello fellow rescript-ers!
I’ve written some bindings for the node-canvas library for fun, and while I was doing this I added in some helper functions to allow calling various functions with a tuple coordinate instead of named x and y params. This is working, but I am wondering if it is possible to create the tuple “aliases” without the compiler producing any extra functions. I feel someone may know a trick I am missing.
I would appreciate if someone could take a peek at this playground snippet and comment whether it is possible to avoid the lineTo2 function in the output by binding in a different way (while still allowing the convenience of calling with a tuple for x and y). See playground for more details!