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

Rational numbers wants an approaches and better instructions #652

Open
cmcaine opened this issue Aug 1, 2023 · 0 comments
Open

Rational numbers wants an approaches and better instructions #652

cmcaine opened this issue Aug 1, 2023 · 0 comments

Comments

@cmcaine
Copy link
Contributor

cmcaine commented Aug 1, 2023

Instructions are too long and useful info is buried in it. It's also formatted badly by default because inline code blows up the line-height, at least sometimes.

The problem has a bunch of subtleties, so an approaches file would be appropriate.

Important to highlight:

  1. Default methods save you effort if you let them
  2. Representing infinity (a good representation is easier for users to understand; makes default equality work; makes ordering easier)
  3. Explanation of less-than method
  4. Dangers of big products and how to reduce those dangers
  5. Secret constructors for speed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant