larcenists / larceny

Larceny Scheme implementation
Other
202 stars 32 forks source link

SRFI 113 (sets) now uses SRFI 128 comparators instead of SRFI 114 #756

Closed WillClinger closed 8 years ago

WillClinger commented 8 years ago

The author(s) of SRFI 113 (sets) are adding a post-finalization note saying it should use SRFI 128 comparators instead of SRFI 114.

For the moment, this change breaks most programs that rely on SRFI 113. The solution is to re-implement SRFI 114 on top of SRFI 128 so SRFI 114 comparators will be compatible with SRFI 128 comparators (or maybe vice versa).

That's kind of tricky because there's no reliable way to tell whether the third argument passed to make-comparator is an ordering predicate (returning booleans) or a comparison procedure (returning numbers).

WillClinger commented 8 years ago

Accomplished by changesets 75499f27df03e0c0b42043b2070d3830f4b80953 and 0bf5c90c6efdb84d55e9df488d4d9434e3d6a0d9