Re: finalizing Daphne Preston-Kendal (08 Dec 2022 08:50 UTC)
Re: finalizing Marc Nieper-Wißkirchen (08 Dec 2022 09:01 UTC)
Re: finalizing Daphne Preston-Kendal (08 Dec 2022 09:05 UTC)
Re: finalizing Jakob Wuhrer (09 Dec 2022 17:09 UTC)
Re: finalizing Marc Nieper-Wißkirchen (09 Dec 2022 17:21 UTC)
Re: finalizing pinoaffe (09 Dec 2022 18:40 UTC)
Re: finalizing Marc Nieper-Wißkirchen (09 Dec 2022 18:56 UTC)
Re: finalizing John Cowan (09 Dec 2022 20:04 UTC)
Re: finalizing Marc Nieper-Wißkirchen (09 Dec 2022 20:17 UTC)
Re: finalizing John Cowan (18 Dec 2022 20:46 UTC)
Re: finalizing Marc Nieper-Wißkirchen (19 Dec 2022 16:38 UTC)
Re: finalizing Daphne Preston-Kendal (09 Dec 2022 17:30 UTC)

Re: finalizing Daphne Preston-Kendal 09 Dec 2022 17:29 UTC

I have decided to keep the names make-sum-comparator and make-product-comparator and finalize the SRFI with them. I have made the ‘warning’ about the name slightly more extensive for the very last draft, which waiting for Arthur to merge.

My full reasoning is:
1. There is precedent for the name make-sum-comparator in Schemepunk
2. Having accepted that precedent, the natural name for the complementary procedure is make-product-comparator
3. This reflects what 99% of what people will use it for in practice, even if theoretically unsound
3a. (Side point: I’m less and less convinced that the name even is theoretically unsound)
4. If someone were to create a ‘true’ product type comparator constructor in Scheme, it would make most sense to use separate comparators for the individual components of the type anyway, because you need to know the appropriate equality and ordering conventions and hash functions for the types used in each slot. Since you have make-wrapper-comparator anyway, it doesn’t make sense to duplicate that functionality within the product type comparator constructor; it does actually make practical sense to reuse make-wrapper-comparator for the mechanism which breaks a product type down into its components. Thus, a ‘true’ product type comparator constructor doesn’t make practical sense, so this will not conflict with any future attempt to define such a ‘true’ composition procedure.

Daphne