Closed bobzhang closed 3 months ago
suppose we have a function whose type is
val f : ?a0:int -> a1: int -> ?a2:int -> unit -> t
In most cases, you dont want an accidential currying happens(see https://github.com/BuckleScript/bucklescript/issues/2670), you would write
f ~a1:3 ()
I imagine if in reason, we can have a small sugar like this
f(~a1=3 .)
Some random thoughts, not of high priority
I have a larger proposal that goes even further and doesn’t require the dot.
suppose we have a function whose type is
In most cases, you dont want an accidential currying happens(see https://github.com/BuckleScript/bucklescript/issues/2670), you would write
I imagine if in reason, we can have a small sugar like this
Some random thoughts, not of high priority