Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generic order relations #214

Open
countvajhula opened this issue Mar 5, 2022 · 4 comments
Open

Generic order relations #214

countvajhula opened this issue Mar 5, 2022 · 4 comments
Labels
libraries This is for issues related to Rhombus libraries

Comments

@countvajhula
Copy link
Contributor

See RRFI [Draft]: Equality and Order Relations Interface

This issue is splintered off from #16 to contain discussion on issues that pertain to generic order relations specifically (e.g. generic interfaces like the proposed gen:orderable, conventions for order-related APIs). The other one will continue to be used for equality-oriented discussion. The composite relations <= and >= and any attendant discussion around the relationship between order and equality could be carried on in either issue as the discussion warrants.

@slaymaker1907
Copy link

If we are doing changes to how hashing is done, I'd like to see the hash code method/function accept a hasher object. This would eliminate the need for providing a hash and a secondary hash function. I also think this style of hashing is easier to implement for individual objects.

Rust does this really well with std::hash::Hasher.

@slaymaker1907
Copy link

The other thing we should think about is how to handle order relations for inexact numbers. I assume Scheme/Racket already have ways to do this, but this could be a good time to consider how/if partial orders should be supported.

@jackfirth jackfirth added the libraries This is for issues related to Rhombus libraries label Apr 1, 2022
@AlexKnauth
Copy link
Member

I've started a Partial Order design proposal here: #276

@soegaard
Copy link
Member

soegaard commented Apr 4, 2023

It would be nice to have something similar to the chain operations in:
https://srfi.schemers.org/srfi-67/srfi-67.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
libraries This is for issues related to Rhombus libraries
Projects
None yet
Development

No branches or pull requests

5 participants