datawire / quark

Quark is a specialized language for defining and implementing communication protocols in multiple languages.
http://datawire.github.io/quark/
Apache License 2.0
98 stars 24 forks source link

Quark has a reasonable story for List<>.sort() #227

Open bozzzzo opened 8 years ago

bozzzzo commented 8 years ago

Right now, Quark lets you call the sort() method on any List, regardless of whether it's possible for the target language to partially-order list entries. This works in Java thanks to Bozzo's comparison hack, which makes sorting in Java act vaguely like sorting in Python. However, this does not work in Ruby (no hack in place). Furthermore, the hack meant that our JSON output was not consistent between languages, making testing more difficult -- I worked around that issue.