julia
julia copied to clipboard
Rational numbers wants an approaches and better instructions
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:
- Default methods save you effort if you let them
- Representing infinity (a good representation is easier for users to understand; makes default equality work; makes ordering easier)
- Explanation of less-than method
- Dangers of big products and how to reduce those dangers
- Secret constructors for speed