rescript-fast-check icon indicating copy to clipboard operation
rescript-fast-check copied to clipboard

Convert to object-style function parameters

Open TheSpyder opened this issue 3 years ago • 0 comments

In version 2.6.0, fast-check deprecated the positional argument style of arbitrary configuration: https://github.com/dubzzz/fast-check/blob/main/CHANGELOG.md#260

I made some inroads to this with the uniqueArray support but the object config pattern is far too unwieldy with either @obj functions or @deriving(abstract).

My plan is to wait for changes that make this easier in ReScript 10, which introduces @obj records: https://forum.rescript-lang.org/t/rfc-more-general-type-checking-for-structural-typings/1485/51

I will then publish a 2.0 release of the bindings that requires v10 and converts everything to object configs.

TheSpyder avatar Mar 30 '22 01:03 TheSpyder