With normal arguments you can do this:
let foo = (_bar) => false
to get rid of warning 27: unused variable
Is there a way to do something as easy with labeled arguments.
I’m aware you can say
let foo = (~bar) => {
bar->ignore
false
}
But imho that’s not “good enough” because often it means I need to add curly brackets to a function that had none before.
I’ve actually considered changing some of the functions to use a single record as an argument instead of a set of labeled arguments to make this easier to manage. What do people think about that approach?