wix-incubator / accord

Accord: A sane validation library for Scala
http://wix.github.io/accord/
Other
530 stars 55 forks source link

Does this library play nice with Java? #118

Closed hntd187 closed 7 years ago

hntd187 commented 7 years ago

While I don't mind using Scala for this, would other people in my group who make use of pure Java be able to use the library without much trouble? I know you guys probably wouldn't need it, but would you have any interest in a shim over accord's types to make at least Result better to deal with in Java?

holograph commented 7 years ago

I don't see why Accord would not be usable from Java, although that was never a design goal. Applying validators and processing results should be trivial as-is, but two things you don't get are implicit resolution (so you have to manually look up the right instance and call .apply) and the definition DSL.

I would certainly not object to any useful contribution around Java support, and would be happy to assist with the effort as best I can. On Tue, 25 Jul 2017 at 20:25 Stephen Carman notifications@github.com wrote:

While I don't mind using Scala for this, would other people in my group who make use of pure Java be able to use the library without much trouble? I know you guys probably wouldn't need it, but would you have any interest in a shim over accord's types to make at least Result better to deal with in Java?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/wix/accord/issues/118, or mute the thread https://github.com/notifications/unsubscribe-auth/ABEC4ITpVz_cq3zC0nxzoUr20zVTHHatks5sRiUdgaJpZM4Oi3gs .