https://kotlinlang.org logo
#akkurate
Title
# akkurate
d

dave08

10/17/2023, 3:22 PM
It would also be nice to have isEqualExceptForProperties(foo, prop2, prop3) // props list is vararg
j

Johann Pardanaud

10/17/2023, 3:48 PM
This seems really tied to tests, could you explain your use case?
FYI, did you read "Extend Akkurate" on the documentation? It could really help you for advanced validation constraints 😉
p

PoisonedYouth

10/17/2023, 3:58 PM
Yes that's also my feeling. This is a use-case for tests and should not be part of the library
d

dave08

10/18/2023, 8:57 AM
Yeah, you're both probably right, I am getting a bit carried away with looking at the library from the perspective of my current use case. Eventually if there's enough of these types of assertion constraints they could potentially be a separate module, but not in the core...
p

PoisonedYouth

10/18/2023, 9:04 AM
Thats a good idea.
j

Johann Pardanaud

10/18/2023, 9:06 AM
It could be a really good option yes 🙂